Method | Description | |
---|---|---|
__construct ( string $address = "127.0.0.1", string | integer $port = 8080 ) | Constructor | |
getSubProtocols ( ) | ||
getSubscribedEvents ( ) | ||
handleRouterStart ( Thruway\Event\RouterStartEvent $event ) | ||
handleRouterStop ( Thruway\Event\RouterStopEvent $event ) | ||
onClose ( Ratchet\ConnectionInterface $conn ) | ||
onError ( Ratchet\ConnectionInterface $conn, Exception $e ) | ||
onMessage ( Ratchet\ConnectionInterface $from, $msg ) | ||
onOpen ( Ratchet\ConnectionInterface $conn ) | ||
onPong ( Ratchet\ConnectionInterface $from, Ratchet\WebSocket\Version\RFC6455\Frame $frame ) | Handle on pong |
public handleRouterStart ( Thruway\Event\RouterStartEvent $event ) | ||
$event | Thruway\Event\RouterStartEvent |
public handleRouterStop ( Thruway\Event\RouterStopEvent $event ) | ||
$event | Thruway\Event\RouterStopEvent |
public onClose ( Ratchet\ConnectionInterface $conn ) | ||
$conn | Ratchet\ConnectionInterface |
public onError ( Ratchet\ConnectionInterface $conn, Exception $e ) | ||
$conn | Ratchet\ConnectionInterface | |
$e | Exception |
public onMessage ( Ratchet\ConnectionInterface $from, $msg ) | ||
$from | Ratchet\ConnectionInterface |
public onOpen ( Ratchet\ConnectionInterface $conn ) | ||
$conn | Ratchet\ConnectionInterface |
public onPong ( Ratchet\ConnectionInterface $from, Ratchet\WebSocket\Version\RFC6455\Frame $frame ) | ||
$from | Ratchet\ConnectionInterface | |
$frame | Ratchet\WebSocket\Version\RFC6455\Frame |