Method | Description | |
---|---|---|
add ( string $name, Sulu\Component\Websocket\MessageDispatcher\MessageHandlerInterface $handler ) | ||
dispatch ( Ratchet\ConnectionInterface $conn, string $name, array $message, array $options, Sulu\Component\Websocket\ConnectionContext\ConnectionContextInterface $context ) | Dispatch event to handler with given name. | |
onClose ( Ratchet\ConnectionInterface $conn, Sulu\Component\Websocket\ConnectionContext\ConnectionContextInterface $context ) | All message handler get the message that the connection is losed. |
public dispatch ( Ratchet\ConnectionInterface $conn, string $name, array $message, array $options, Sulu\Component\Websocket\ConnectionContext\ConnectionContextInterface $context ) | ||
$conn | Ratchet\ConnectionInterface | |
$name | string | Message name |
$message | array | |
$options | array | |
$context | Sulu\Component\Websocket\ConnectionContext\ConnectionContextInterface |
public onClose ( Ratchet\ConnectionInterface $conn, Sulu\Component\Websocket\ConnectionContext\ConnectionContextInterface $context ) | ||
$conn | Ratchet\ConnectionInterface | |
$context | Sulu\Component\Websocket\ConnectionContext\ConnectionContextInterface |