Méthode | Description | |
---|---|---|
__construct ( string $realm, React\EventLoop\LoopInterface $loop = null ) | ||
addStateHandler ( $args ) | ||
getReady ( ) : boolean | Get ready flag | |
initModule ( Thruway\Peer\RouterInterface $router, React\EventLoop\LoopInterface $loop ) | Gets called when the module is initialized in the router | |
onSessionStart ( |
Handles session started | |
processSubscriptionAdded ( |
||
processSubscriptionRemoved ( |
||
removeStateHandler ( $args ) | ||
setReady ( boolean $ready ) | Set ready flag |
Méthode | Description | |
---|---|---|
getStateHandlerRegistrationForSubscription ( |
||
mapNewStateHandlerRegistration ( |
||
setupStateHandlerRegistration ( |
Called when we need to setup a registration If there is a registration that works - then we set the handler Otherwise, we set it to null |
public __construct ( string $realm, React\EventLoop\LoopInterface $loop = null ) | ||
$realm | string | |
$loop | React\EventLoop\LoopInterface |
public initModule ( Thruway\Peer\RouterInterface $router, React\EventLoop\LoopInterface $loop ) | ||
$router | Thruway\Peer\RouterInterface | |
$loop | React\EventLoop\LoopInterface |
public onSessionStart ( |
||
$session | ||
$transport | Thruway\Transport\TransportProviderInterface |
public processSubscriptionAdded ( |
||
$subscription |
public processSubscriptionRemoved ( |
||
$subscription |