Property | Type | Description | |
---|---|---|---|
$messageDispatcher | Sulu\Component\Websocket\MessageDispatcher\MessageDispatcherInterface | ||
$name |
Method | Description | |
---|---|---|
__construct ( $appName, Sulu\Component\Websocket\MessageDispatcher\MessageDispatcherInterface $messageDispatcher, Doctrine\Common\Cache\Cache $contextsCache ) | ||
onClose ( Ratchet\ConnectionInterface $connection ) | ||
onMessage ( Ratchet\ConnectionInterface $from, string $msg ) | Triggered when a client sends data through the socket. |
Method | Description | |
---|---|---|
createMessageHandlerContext ( Sulu\Component\Websocket\ConnectionContext\ConnectionContextInterface $context, string $handlerName ) : |
Create a message handler context. |
Method | Description | |
---|---|---|
dispatch ( Ratchet\ConnectionInterface $conn, Sulu\Component\Websocket\ConnectionContext\ConnectionContextInterface $context, array $msg ) | Dispatches message to handler with dispatcher service. |
public __construct ( $appName, Sulu\Component\Websocket\MessageDispatcher\MessageDispatcherInterface $messageDispatcher, Doctrine\Common\Cache\Cache $contextsCache ) | ||
$messageDispatcher | Sulu\Component\Websocket\MessageDispatcher\MessageDispatcherInterface | |
$contextsCache | Doctrine\Common\Cache\Cache |
protected createMessageHandlerContext ( Sulu\Component\Websocket\ConnectionContext\ConnectionContextInterface $context, string $handlerName ) : |
||
$context | Sulu\Component\Websocket\ConnectionContext\ConnectionContextInterface | |
$handlerName | string | |
return |
public onClose ( Ratchet\ConnectionInterface $connection ) | ||
$connection | Ratchet\ConnectionInterface |
protected MessageDispatcherInterface,Sulu\Component\Websocket\MessageDispatcher $messageDispatcher | ||
return | Sulu\Component\Websocket\MessageDispatcher\MessageDispatcherInterface |