Метод | Описание | |
---|---|---|
__construct ( Sulu\Component\Websocket\MessageDispatcher\MessageBuilderInterface $messageBuilder ) | ||
add ( $name, Sulu\Component\Websocket\MessageDispatcher\MessageHandlerInterface $handler ) | ||
dispatch ( Ratchet\ConnectionInterface $conn, $name, array $message, array $options, Sulu\Component\Websocket\ConnectionContext\ConnectionContextInterface $context ) | ||
onClose ( Ratchet\ConnectionInterface $conn, Sulu\Component\Websocket\ConnectionContext\ConnectionContextInterface $context ) |
public __construct ( Sulu\Component\Websocket\MessageDispatcher\MessageBuilderInterface $messageBuilder ) | ||
$messageBuilder | Sulu\Component\Websocket\MessageDispatcher\MessageBuilderInterface |
public add ( $name, Sulu\Component\Websocket\MessageDispatcher\MessageHandlerInterface $handler ) | ||
$handler | Sulu\Component\Websocket\MessageDispatcher\MessageHandlerInterface |
public dispatch ( Ratchet\ConnectionInterface $conn, $name, array $message, array $options, Sulu\Component\Websocket\ConnectionContext\ConnectionContextInterface $context ) | ||
$conn | Ratchet\ConnectionInterface | |
$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 |