Method |
Description |
|
__construct ( Thruway\Transport\TransportInterface $transport, Thruway\Peer\ClientInterface $peer ) |
Constructor |
|
call ( string $procedureName, array | mixed $arguments = null, array | mixed $argumentsKw = null, array | mixed $options = null ) : Promise |
Call |
|
close ( ) |
Close client session
TODO: Need to send goodbye message |
|
onClose ( ) |
Handle on close client session |
|
publish ( string $topicName, array | mixed $arguments = null, array | mixed $argumentsKw = null, array | mixed $options = null ) : Promise |
Publish |
|
register ( string $procedureName, callable $callback, array | mixed $options = null ) : Promise |
Register |
|
sendMessage ( Thruway\Message\Message $msg ) : mixed | void |
|
|
setSessionId ( integer $sessionId ) |
|
|
subscribe ( string $topicName, callable $callback, $options = null ) : Promise |
Subscribe |
|
unregister ( string $procedureName ) : Promise | FALSE |
Unregister |
|