Property | Type | Description | |
---|---|---|---|
$name | string |
Method | Description | |
---|---|---|
__construct ( Doctrine\Common\Cache\Cache $contextsCache ) | initialize clients container. | |
__toString ( ) | ||
getName ( ) | ||
onClose ( Ratchet\ConnectionInterface $conn ) | ||
onError ( Ratchet\ConnectionInterface $conn, Exception $e ) | ||
onOpen ( Ratchet\ConnectionInterface $conn ) |
Method | Description | |
---|---|---|
createContext ( Ratchet\ConnectionInterface $conn ) : Sulu\Component\Websocket\ConnectionContext\ConnectionContextInterface | Returns new created websocket context object. | |
getContext ( Ratchet\ConnectionInterface $conn ) : Sulu\Component\Websocket\ConnectionContext\ConnectionContextInterface | Returns websocket context for given connection. | |
saveContext ( Sulu\Component\Websocket\ConnectionContext\ConnectionContextInterface $context ) | Saves websocket context. |
public __construct ( Doctrine\Common\Cache\Cache $contextsCache ) | ||
$contextsCache | Doctrine\Common\Cache\Cache |
protected createContext ( Ratchet\ConnectionInterface $conn ) : Sulu\Component\Websocket\ConnectionContext\ConnectionContextInterface | ||
$conn | Ratchet\ConnectionInterface | |
return | Sulu\Component\Websocket\ConnectionContext\ConnectionContextInterface |
protected getContext ( Ratchet\ConnectionInterface $conn ) : Sulu\Component\Websocket\ConnectionContext\ConnectionContextInterface | ||
$conn | Ratchet\ConnectionInterface | |
return | Sulu\Component\Websocket\ConnectionContext\ConnectionContextInterface |
public onClose ( Ratchet\ConnectionInterface $conn ) | ||
$conn | Ratchet\ConnectionInterface |
public onError ( Ratchet\ConnectionInterface $conn, Exception $e ) | ||
$conn | Ratchet\ConnectionInterface | |
$e | Exception |
public onOpen ( Ratchet\ConnectionInterface $conn ) | ||
$conn | Ratchet\ConnectionInterface |
protected saveContext ( Sulu\Component\Websocket\ConnectionContext\ConnectionContextInterface $context ) | ||
$context | Sulu\Component\Websocket\ConnectionContext\ConnectionContextInterface |