PHP Class Thruway\Transport\RatchetTransportProvider

Inheritance: implements Thruway\Transport\TransportProviderInterface, implements Ratchet\MessageComponentInterface, implements Ratchet\WebSocket\WsServerInterface
Afficher le fichier Open project: voryx/thruway Class Usage Examples

Méthodes publiques

Méthode 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

Method Details

__construct() public méthode

Constructor
public __construct ( string $address = "127.0.0.1", string | integer $port = 8080 )
$address string
$port string | integer

getSubProtocols() public méthode

public getSubProtocols ( )

getSubscribedEvents() public static méthode

public static getSubscribedEvents ( )

handleRouterStart() public méthode

public handleRouterStart ( Thruway\Event\RouterStartEvent $event )
$event Thruway\Event\RouterStartEvent

handleRouterStop() public méthode

public handleRouterStop ( Thruway\Event\RouterStopEvent $event )
$event Thruway\Event\RouterStopEvent

onClose() public méthode

public onClose ( Ratchet\ConnectionInterface $conn )
$conn Ratchet\ConnectionInterface

onError() public méthode

public onError ( Ratchet\ConnectionInterface $conn, Exception $e )
$conn Ratchet\ConnectionInterface
$e Exception

onMessage() public méthode

public onMessage ( Ratchet\ConnectionInterface $from, $msg )
$from Ratchet\ConnectionInterface

onOpen() public méthode

public onOpen ( Ratchet\ConnectionInterface $conn )
$conn Ratchet\ConnectionInterface

onPong() public méthode

Handle on pong
public onPong ( Ratchet\ConnectionInterface $from, Ratchet\WebSocket\Version\RFC6455\Frame $frame )
$from Ratchet\ConnectionInterface
$frame Ratchet\WebSocket\Version\RFC6455\Frame