Свойство | Тип | Описание | |
---|---|---|---|
$clients | [type] | Clients. | |
$conn | Ratchet\ConnectionInterface | Current connection. | |
$connections | [type] | Total connections. | |
$console | [type] | Console. | |
$throttled | [type] | Throttled. |
Метод | Описание | |
---|---|---|
__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. |
Метод | Описание | |
---|---|---|
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 | |
Результат | [type] |
public onClose ( Ratchet\ConnectionInterface $conn ) : [type] | ||
$conn | Ratchet\ConnectionInterface | [description] |
Результат | [type] |
public onError ( Ratchet\ConnectionInterface $conn, Exception $exception ) : [type] | ||
$conn | Ratchet\ConnectionInterface | [description] |
$exception | Exception | [description] |
Результат | [type] |
public onMessage ( Ratchet\ConnectionInterface $conn, [type] $input ) : [type] | ||
$conn | Ratchet\ConnectionInterface | [description] |
$input | [type] | |
Результат | [type] |
public onOpen ( Ratchet\ConnectionInterface $conn ) : [type] | ||
$conn | Ratchet\ConnectionInterface | [description] |
Результат | [type] |
public send ( Ratchet\ConnectionInterface $conn, [type] $message ) : [type] | ||
$conn | Ratchet\ConnectionInterface | |
$message | [type] | |
Результат | [type] |
public sendAll ( [type] $message ) : [type] | ||
$message | [type] | |
Результат | [type] |
protected ConnectionInterface,Ratchet $conn | ||
Результат | Ratchet\ConnectionInterface |