PHP Class Thruway\Transport\InternalClientTransport

Inheritance: implements Thruway\Transport\TransportInterface
Mostra file Open project: voryx/thruway Class Usage Examples

Public Methods

Method Description
__construct ( callable $sendMessage, React\EventLoop\LoopInterface $loop ) Constructor
getTransportDetails ( ) : array Get transport details
sendMessage ( Thruway\Message\Message $msg ) Send message

Method Details

__construct() public method

Constructor
public __construct ( callable $sendMessage, React\EventLoop\LoopInterface $loop )
$sendMessage callable
$loop React\EventLoop\LoopInterface

getTransportDetails() public method

Get transport details
public getTransportDetails ( ) : array
return array

sendMessage() public method

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