Свойство | Type | Description | |
---|---|---|---|
$clients | [type] | Clients. | |
$conn | Ratchet\ConnectionInterface | Current connection. | |
$connections | [type] | Total connections. | |
$console | [type] | Console. | |
$throttled | [type] | Throttled. |
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. |
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. |
public __construct ( [type] $console ) | ||
$console | [type] |
public abort ( Ratchet\ConnectionInterface $conn ) : [type] | ||
$conn | Ratchet\ConnectionInterface | |
Résultat | [type] |
public onClose ( Ratchet\ConnectionInterface $conn ) : [type] | ||
$conn | Ratchet\ConnectionInterface | [description] |
Résultat | [type] |
public onError ( Ratchet\ConnectionInterface $conn, Exception $exception ) : [type] | ||
$conn | Ratchet\ConnectionInterface | [description] |
$exception | Exception | [description] |
Résultat | [type] |
public onMessage ( Ratchet\ConnectionInterface $conn, [type] $input ) : [type] | ||
$conn | Ratchet\ConnectionInterface | [description] |
$input | [type] | |
Résultat | [type] |
public onOpen ( Ratchet\ConnectionInterface $conn ) : [type] | ||
$conn | Ratchet\ConnectionInterface | [description] |
Résultat | [type] |
public send ( Ratchet\ConnectionInterface $conn, [type] $message ) : [type] | ||
$conn | Ratchet\ConnectionInterface | |
$message | [type] | |
Résultat | [type] |
public sendAll ( [type] $message ) : [type] | ||
$message | [type] | |
Résultat | [type] |
protected ConnectionInterface,Ratchet $conn | ||
Résultat | Ratchet\ConnectionInterface |