trait InteractsWithChannelInformation

Methods

array
infoForChannels(Application $application, array $channels, string $info)

Get meta / status information for the given channels.

array
info(Application $application, string $channel, string $info)

Get meta / status information for the given channel.

bool
isPresenceChannel(Channel $channel)

Determine if the given channel is a presence channel.

bool
isCacheChannel(Channel $channel)

Determine if the given channel is a cache channel.

int
userCount(Channel $channel)

Get the number of unique users subscribed to the presence channel.

Details

at line 18
protected array infoForChannels(Application $application, array $channels, string $info)

Get meta / status information for the given channels.

Parameters

Application $application
array $channels
string $info

Return Value

array

at line 32
protected array info(Application $application, string $channel, string $info)

Get meta / status information for the given channel.

Parameters

Application $application
string $channel
string $info

Return Value

array

at line 77
protected bool isPresenceChannel(Channel $channel)

Determine if the given channel is a presence channel.

Parameters

Channel $channel

Return Value

bool

at line 85
protected bool isCacheChannel(Channel $channel)

Determine if the given channel is a cache channel.

Parameters

Channel $channel

Return Value

bool

at line 93
protected int userCount(Channel $channel)

Get the number of unique users subscribed to the presence channel.

Parameters

Channel $channel

Return Value

int