Method |
Description |
|
__construct ( string $realm, React\EventLoop\LoopInterface $loop = null ) |
Constructor |
|
__toString ( ) : string |
|
|
addClientAuthenticator ( Thruway\Authentication\ClientAuthenticationInterface $ca ) |
Add client authenticator |
|
addRole ( AbstractRole $role ) : Client |
Add role |
|
addTransportProvider ( Thruway\Transport\ClientTransportProviderInterface $transportProvider ) |
Add transport provider |
|
getAuthId ( ) : string |
Get authenticate ID |
|
getAuthMethods ( ) : array |
Get list authenticate methods |
|
getCallee ( ) : Callee |
Get callee |
|
getCaller ( ) : Caller |
Get caller |
|
getLoop ( ) : React\EventLoop\LoopInterface |
Get loop |
|
getPublisher ( ) : Publisher |
Get publisher |
|
getRealm ( ) : string |
|
|
getRoleInfoObject ( ) : object |
|
|
getRoles ( ) : array |
Get list roles |
|
getSession ( ) : ClientSession |
Get client session |
|
getSubscriber ( ) : Subscriber |
Get subscriber |
|
onClose ( mixed $reason ) |
Handle close session |
|
onMessage ( Thruway\Transport\TransportInterface $transport, Thruway\Message\Message $msg ) |
Handle process message |
|
onOpen ( Thruway\Transport\TransportInterface $transport ) |
Handle open transport |
|
onSessionEnd ( ClientSession $session ) |
Handle end session |
|
onSessionStart ( ClientSession $session, Thruway\Transport\TransportInterface $transport ) |
This is meant to be overridden so that the client can do its
thing |
|
processAbort ( ClientSession $session, Thruway\Message\AbortMessage $msg ) |
|
|
processChallenge ( ClientSession $session, Thruway\Message\ChallengeMessage $msg ) |
Handle process challenge message |
|
processGoodbye ( ClientSession $session, Thruway\Message\GoodbyeMessage $msg ) |
Handle process goodbye message |
|
processOther ( ClientSession $session, Thruway\Message\Message $msg ) |
Handle process other Message |
|
processWelcome ( ClientSession $session, Thruway\Message\WelcomeMessage $msg ) |
Process Welcome message |
|
retryConnection ( ) |
Retry connecting to the transport |
|
setAttemptRetry ( boolean $attemptRetry ) |
Set attempt retry |
|
setAuthId ( string $authId ) |
Set authenticate ID |
|
setAuthMethods ( array $authMethods ) |
Set list authenticate methods |
|
setLoop ( React\EventLoop\LoopInterface $loop ) |
|
|
setReconnectOptions ( array $reconnectOptions ) |
Set reconnect options |
|
start ( boolean $startLoop = true ) |
Start the transport |
|
startSession ( ClientSession $session ) |
Start client session |
|