ListenerManager
in package
Table of Contents
Properties
- $listeners : array<string|int, SubscribeCallback>
- $pubnub : PubNub
Methods
- __construct() : mixed
- ListenerManager constructor.
- addListener() : mixed
- announceMessage() : mixed
- announcePresence() : mixed
- announceSignal() : mixed
- announceStatus() : mixed
- removeListener() : mixed
Properties
$listeners
protected
array<string|int, SubscribeCallback>
$listeners
= []
$pubnub
protected
PubNub
$pubnub
Methods
__construct()
ListenerManager constructor.
public
__construct(PubNub $pubnub) : mixed
Parameters
- $pubnub : PubNub
addListener()
public
addListener(SubscribeCallback $listener) : mixed
Parameters
- $listener : SubscribeCallback
announceMessage()
public
announceMessage(PNMessageResult $message) : mixed
Parameters
- $message : PNMessageResult
Tags
announcePresence()
public
announcePresence(PNPresenceEventResult $presence) : mixed
Parameters
- $presence : PNPresenceEventResult
Tags
announceSignal()
public
announceSignal(PNSignalMessageResult $signal) : mixed
Parameters
- $signal : PNSignalMessageResult
Tags
announceStatus()
public
announceStatus(PNStatus $status) : mixed
Parameters
- $status : PNStatus
Tags
removeListener()
public
removeListener(SubscribeCallback $listener) : mixed
Parameters
- $listener : SubscribeCallback