Table of Contents
Interfaces
- BroadcastAdapter
Properties
-
$broadcasterType
: string
-
$channelPrefix
: string
-
$threadChannelType
: string
-
$useHashChannel
: bool
-
$userChannelType
: string
Methods
-
__construct()
: mixed
-
broadcast()
: void
-
broadcastToUser()
: void
-
connect()
: void
-
disconnect()
: void
-
isBroadcastingAvailable()
: bool
-
buildChannel()
: Channel
-
buildChannelName()
: string
-
buildEventName()
: string
-
buildPresenceChannel()
: PresenceChannel
-
buildPresenceChannelForThread()
: PresenceChannel
-
buildPrivateChannel()
: PrivateChannel
-
buildPrivateChannelForThread()
: PrivateChannel
-
buildPrivateChannelName()
: string
-
hashChannelName()
: string
$broadcasterType
protected
string
$broadcasterType
= 'pusher'
$channelPrefix
protected
string
$channelPrefix
= 'chat'
$threadChannelType
protected
string
$threadChannelType
= 'public'
$useHashChannel
protected
bool
$useHashChannel
= false
$userChannelType
protected
string
$userChannelType
= 'private'
__construct()
public
__construct([string $broadcasterType = 'pusher' ][, string $channelPrefix = 'chat' ][, string $threadChannelType = 'public' ][, string $userChannelType = 'private' ][, bool $useHashChannel = false ]) : mixed
Parameters
-
$broadcasterType
: string
= 'pusher'
-
-
$channelPrefix
: string
= 'chat'
-
-
$threadChannelType
: string
= 'public'
-
-
$userChannelType
: string
= 'private'
-
-
$useHashChannel
: bool
= false
-
broadcast()
public
broadcast(string $threadId, BroadcastEvent $event[, array<string|int, mixed> $options = [] ]) : void
Parameters
-
$threadId
: string
-
-
$event
: BroadcastEvent
-
-
$options
: array<string|int, mixed>
= []
-
broadcastToUser()
public
broadcastToUser(string $threadId, string|array<string|int, mixed> $userIds, BroadcastEvent $event[, array<string|int, mixed> $options = [] ]) : void
Parameters
-
$threadId
: string
-
-
$userIds
: string|array<string|int, mixed>
-
-
$event
: BroadcastEvent
-
-
$options
: array<string|int, mixed>
= []
-
connect()
public
connect() : void
disconnect()
public
disconnect() : void
isBroadcastingAvailable()
public
isBroadcastingAvailable(string $threadId) : bool
Parameters
-
$threadId
: string
-
buildChannel()
protected
buildChannel(string $threadId) : Channel
Parameters
-
$threadId
: string
-
buildChannelName()
protected
buildChannelName(string $threadId) : string
Parameters
-
$threadId
: string
-
buildEventName()
protected
buildEventName(string $eventType) : string
Parameters
-
$eventType
: string
-
buildPresenceChannel()
protected
buildPresenceChannel(string $threadId, string $userId) : PresenceChannel
Parameters
-
$threadId
: string
-
-
$userId
: string
-
Return values
PresenceChannel
buildPresenceChannelForThread()
protected
buildPresenceChannelForThread(string $threadId) : PresenceChannel
Parameters
-
$threadId
: string
-
Return values
PresenceChannel
buildPrivateChannel()
protected
buildPrivateChannel(string $threadId, string $userId) : PrivateChannel
Parameters
-
$threadId
: string
-
-
$userId
: string
-
Return values
PrivateChannel
buildPrivateChannelForThread()
protected
buildPrivateChannelForThread(string $threadId) : PrivateChannel
Parameters
-
$threadId
: string
-
Return values
PrivateChannel
buildPrivateChannelName()
protected
buildPrivateChannelName(string $threadId, string $userId) : string
Parameters
-
$threadId
: string
-
-
$userId
: string
-
hashChannelName()
protected
hashChannelName(string $threadId) : string
Parameters
-
$threadId
: string
-