SubscriptionManager
in package
Table of Contents
Properties
- $subscriptionState : StateManager
- $listenerManager : ListenerManager
- $pubnub : PubNub
- $region : string
- $subscriptionStatusAnnounced : bool
- $timetoken : int
Methods
- __construct() : mixed
- SubscriptionManager constructor.
- adaptSubscribeBuilder() : mixed
- adaptUnsubscribeBuilder() : mixed
- addListener() : mixed
- getSubscribedChannelGroups() : array<string|int, string>
- getSubscribedGroups() : array<string|int, string>
- removeListener() : mixed
- start() : mixed
- processIncomingPayload() : mixed
- processMessage() : mixed
Properties
$subscriptionState
public
StateManager
$subscriptionState
$listenerManager
protected
ListenerManager
$listenerManager
$pubnub
protected
PubNub
$pubnub
$region
protected
string
$region
$subscriptionStatusAnnounced
protected
bool
$subscriptionStatusAnnounced
$timetoken
protected
int
$timetoken
Methods
__construct()
SubscriptionManager constructor.
public
__construct(PubNub $pubnub) : mixed
Parameters
- $pubnub : PubNub
adaptSubscribeBuilder()
public
adaptSubscribeBuilder(SubscribeOperation $subscribeOperation) : mixed
Parameters
- $subscribeOperation : SubscribeOperation
adaptUnsubscribeBuilder()
public
adaptUnsubscribeBuilder(UnsubscribeOperation $operation[, bool $announceStatus = true ]) : mixed
Parameters
- $operation : UnsubscribeOperation
- $announceStatus : bool = true
addListener()
public
addListener(SubscribeCallback $listener) : mixed
Parameters
- $listener : SubscribeCallback
getSubscribedChannelGroups()
public
getSubscribedChannelGroups() : array<string|int, string>
Return values
array<string|int, string>getSubscribedGroups()
public
getSubscribedGroups() : array<string|int, string>
Return values
array<string|int, string>removeListener()
public
removeListener(SubscribeCallback $listener) : mixed
Parameters
- $listener : SubscribeCallback
start()
public
start() : mixed
processIncomingPayload()
protected
processIncomingPayload(SubscribeMessage $message) : mixed
Parameters
- $message : SubscribeMessage
Tags
processMessage()
protected
processMessage(mixed $message) : mixed
Parameters
- $message : mixed