PHP Class Thruway\Transport\RatchetTransportProvider

Inheritance: implements Thruway\Transport\TransportProviderInterface, implements Ratchet\MessageComponentInterface, implements Ratchet\WebSocket\WsServerInterface
ファイルを表示 Open project: voryx/thruway Class Usage Examples

Public Methods

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

Method Details

__construct() public method

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

getSubProtocols() public method

public getSubProtocols ( )

getSubscribedEvents() public static method

public static getSubscribedEvents ( )

handleRouterStart() public method

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

handleRouterStop() public method

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

onClose() public method

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

onError() public method

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

onMessage() public method

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

onOpen() public method

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

onPong() public method

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