Property | Type | Description | |
---|---|---|---|
$matchers | array | ||
$stateHandlerRegistry | |||
$subscriptionGroups | array |
Method | Description | |
---|---|---|
__construct ( ) | ||
addMatcher ( Thruway\Subscription\MatcherInterface $matcher ) : boolean | ||
getFeatures ( ) : stdClass | Return supported features | |
getMatcherForMatchType ( $matchType ) : Thruway\Subscription\MatcherInterface | boolean | ||
getStateHandlerRegistry ( ) : |
||
getSubscribedRealmEvents ( ) : array | ||
getSubscriptionById ( $id ) : boolean | ||
getSubscriptionGroups ( ) : array | ||
getSubscriptions ( ) : array | ||
handleLeaveRealm ( |
||
handlePublishMessage ( |
||
handleSendWelcomeMessage ( |
||
handleSubscribeMessage ( |
||
handleUnsubscribeMessage ( |
||
leave ( |
||
managerGetSubscriptions ( ) : array | todo: this may be used by testing | |
setStateHandlerRegistry ( |
Method | Description | |
---|---|---|
processPublish ( |
Process publish message | |
processSubscribe ( |
Process subscribe message | |
processUnsubscribe ( |
Process Unsubscribe message |
public addMatcher ( Thruway\Subscription\MatcherInterface $matcher ) : boolean | ||
$matcher | Thruway\Subscription\MatcherInterface | |
return | boolean |
public getFeatures ( ) : stdClass | ||
return | stdClass |
public getMatcherForMatchType ( $matchType ) : Thruway\Subscription\MatcherInterface | boolean | ||
$matchType | ||
return | Thruway\Subscription\MatcherInterface | boolean |
public getStateHandlerRegistry ( ) : |
||
return |
public handleLeaveRealm ( |
||
$event |
public handlePublishMessage ( |
||
$event |
public handleSendWelcomeMessage ( |
||
$event |
public handleSubscribeMessage ( |
||
$event |
public handleUnsubscribeMessage ( |
||
$event |
public managerGetSubscriptions ( ) : array | ||
return | array |
protected processPublish ( |
||
$session | ||
$msg | Thruway\Message\PublishMessage |
protected processSubscribe ( |
||
$session | ||
$msg | Thruway\Message\SubscribeMessage |
protected processUnsubscribe ( |
||
$session | ||
$msg | Thruway\Message\UnsubscribeMessage |
public setStateHandlerRegistry ( |
||
$stateHandlerRegistry |
protected StateHandlerRegistry,Thruway\Subscription $stateHandlerRegistry | ||
return |