PHP Class Askedio\LaravelRatchet\RatchetServer

Inheritance: implements Ratchet\MessageComponentInterface
Afficher le fichier Open project: askedio/laravel-ratchet Class Usage Examples

Protected Properties

Свойство Type Description
$clients [type] Clients.
$conn Ratchet\ConnectionInterface Current connection.
$connections [type] Total connections.
$console [type] Console.
$throttled [type] Throttled.

Méthodes publiques

Méthode Description
__construct ( [type] $console ) Set clients and console.
abort ( Ratchet\ConnectionInterface $conn ) : [type] Close the current connection.
onClose ( Ratchet\ConnectionInterface $conn ) : [type] Perform action on close.
onError ( Ratchet\ConnectionInterface $conn, Exception $exception ) : [type] Perform action on error.
onMessage ( Ratchet\ConnectionInterface $conn, [type] $input ) : [type] Perform action on message.
onOpen ( Ratchet\ConnectionInterface $conn ) : [type] Perform action on open.
send ( Ratchet\ConnectionInterface $conn, [type] $message ) : [type] Send a message to the current connection.
sendAll ( [type] $message ) : [type] Send a message to all connections.

Private Methods

Méthode Description
attach ( )
isThrottled ( [type] $conn, [type] $setting ) : boolean Check if the called function is throttled.
limit ( ) : [type] Limit connections.
throttle ( ) : [type] Throttle connections.

Method Details

__construct() public méthode

Set clients and console.
public __construct ( [type] $console )
$console [type]

abort() public méthode

Close the current connection.
public abort ( Ratchet\ConnectionInterface $conn ) : [type]
$conn Ratchet\ConnectionInterface
Résultat [type]

onClose() public méthode

Perform action on close.
public onClose ( Ratchet\ConnectionInterface $conn ) : [type]
$conn Ratchet\ConnectionInterface [description]
Résultat [type]

onError() public méthode

Perform action on error.
public onError ( Ratchet\ConnectionInterface $conn, Exception $exception ) : [type]
$conn Ratchet\ConnectionInterface [description]
$exception Exception [description]
Résultat [type]

onMessage() public méthode

Perform action on message.
public onMessage ( Ratchet\ConnectionInterface $conn, [type] $input ) : [type]
$conn Ratchet\ConnectionInterface [description]
$input [type]
Résultat [type]

onOpen() public méthode

Perform action on open.
public onOpen ( Ratchet\ConnectionInterface $conn ) : [type]
$conn Ratchet\ConnectionInterface [description]
Résultat [type]

send() public méthode

Send a message to the current connection.
public send ( Ratchet\ConnectionInterface $conn, [type] $message ) : [type]
$conn Ratchet\ConnectionInterface
$message [type]
Résultat [type]

sendAll() public méthode

Send a message to all connections.
public sendAll ( [type] $message ) : [type]
$message [type]
Résultat [type]

Property Details

$clients protected_oe property

Clients.
protected [type] $clients
Résultat [type]

$conn protected_oe property

Current connection.
protected ConnectionInterface,Ratchet $conn
Résultat Ratchet\ConnectionInterface

$connections protected_oe property

Total connections.
protected [type] $connections
Résultat [type]

$console protected_oe property

Console.
protected [type] $console
Résultat [type]

$throttled protected_oe property

Throttled.
protected [type] $throttled
Résultat [type]