PHP 클래스 Thruway\Transport\RatchetTransport

상속: implements Thruway\Transport\TransportInterface
파일 보기 프로젝트 열기: voryx/thruway 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( Ratchet\ConnectionInterface $conn, React\EventLoop\LoopInterface $loop ) Constructor
close ( ) Close transport
getTransportDetails ( ) : array Get transport details
onPong ( Ratchet\WebSocket\Version\RFC6455\Frame $frame ) Handle on pong
ping ( integer $timeout = 10 ) : Promise Ping
sendMessage ( Thruway\Message\Message $msg ) Send message

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( Ratchet\ConnectionInterface $conn, React\EventLoop\LoopInterface $loop )
$conn Ratchet\ConnectionInterface
$loop React\EventLoop\LoopInterface

close() 공개 메소드

Close transport
public close ( )

getTransportDetails() 공개 메소드

Get transport details
public getTransportDetails ( ) : array
리턴 array

onPong() 공개 메소드

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

ping() 공개 메소드

Ping
public ping ( integer $timeout = 10 ) : Promise
$timeout integer
리턴 React\Promise\Promise

sendMessage() 공개 메소드

Send message
public sendMessage ( Thruway\Message\Message $msg )
$msg Thruway\Message\Message