PHP Class Thruway\Transport\PawlTransport

Inheritance: extends AbstractTransport
Mostra file Open project: voryx/thruway Class Usage Examples

Public Methods

Method Description
__construct ( Ratchet\Client\WebSocket $conn, React\EventLoop\LoopInterface $loop ) Constructor
close ( ) close transport
getTransportDetails ( ) : array
ping ( integer $timeout = 10 ) : Promise ping
sendMessage ( Thruway\Message\Message $msg ) Send message

Method Details

__construct() public method

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

close() public method

close transport
public close ( )

getTransportDetails() public method

public getTransportDetails ( ) : array
return array

ping() public method

ping
public ping ( integer $timeout = 10 ) : Promise
$timeout integer
return React\Promise\Promise

sendMessage() public method

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