PHP 클래스 Thruway\Transport\RatchetTransportProvider

상속: implements Thruway\Transport\TransportProviderInterface, implements Ratchet\MessageComponentInterface, implements Ratchet\WebSocket\WsServerInterface
파일 보기 프로젝트 열기: voryx/thruway 1 사용 예제들

공개 메소드들

메소드 설명
__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

메소드 상세

__construct() 공개 메소드

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

getSubProtocols() 공개 메소드

public getSubProtocols ( )

getSubscribedEvents() 공개 정적인 메소드

public static getSubscribedEvents ( )

handleRouterStart() 공개 메소드

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

handleRouterStop() 공개 메소드

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

onClose() 공개 메소드

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

onError() 공개 메소드

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

onMessage() 공개 메소드

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

onOpen() 공개 메소드

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

onPong() 공개 메소드

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