StateManager
in package
Table of Contents
Properties
- $channelGroups : mixed
- $channels : array<string|int, mixed>
- $presenceChannelGroups : mixed
- $presenceChannels : mixed
- $pubnub : PubNub
Methods
- __construct() : mixed
- ListenerManager constructor.
- adaptSubscribeBuilder() : mixed
- adaptUnsubscribeBuilder() : mixed
- isEmpty() : mixed
- prepareChannelGroupList() : array<string|int, string>
- prepareChannelList() : array<string|int, string>
- prepareMembershipList() : array<string|int, string>
Properties
$channelGroups
protected
mixed
$channelGroups
= []
$channels
protected
array<string|int, mixed>
$channels
= []
$presenceChannelGroups
protected
mixed
$presenceChannelGroups
= []
$presenceChannels
protected
mixed
$presenceChannels
= []
$pubnub
protected
PubNub
$pubnub
Methods
__construct()
ListenerManager constructor.
public
__construct(PubNub $pubnub) : mixed
Parameters
- $pubnub : PubNub
adaptSubscribeBuilder()
public
adaptSubscribeBuilder(SubscribeOperation $subscribeOperation) : mixed
Parameters
- $subscribeOperation : SubscribeOperation
adaptUnsubscribeBuilder()
public
adaptUnsubscribeBuilder(UnsubscribeOperation $unsubscribeOperation) : mixed
Parameters
- $unsubscribeOperation : UnsubscribeOperation
isEmpty()
public
isEmpty() : mixed
prepareChannelGroupList()
public
prepareChannelGroupList(bool $includePresence) : array<string|int, string>
Parameters
- $includePresence : bool
Return values
array<string|int, string>prepareChannelList()
public
prepareChannelList(bool $includePresence) : array<string|int, string>
Parameters
- $includePresence : bool
Return values
array<string|int, string>prepareMembershipList()
private
prepareMembershipList(array<string|int, mixed> $dataStorage, array<string|int, mixed> $presenceStorage, bool $includePresence) : array<string|int, string>
Parameters
- $dataStorage : array<string|int, mixed>
- $presenceStorage : array<string|int, mixed>
- $includePresence : bool