trait InteractsWithPresenceChannels

Traits

Methods

void
subscribe(Connection $connection, string|null $auth = null, string|null $data = null, string|null $userId = null)

Subscribe to the given channel.

bool
verify(Connection $connection, string|null $auth = null, string|null $data = null)

Determine whether the given authentication token is valid.

void
unsubscribe(Connection $connection, string|null $userId = null)

Unsubscribe from the given channel.

array
data()

Get the data associated with the channel.

Details

at line 20
void subscribe(Connection $connection, string|null $auth = null, string|null $data = null, string|null $userId = null)

Subscribe to the given channel.

Parameters

Connection $connection
string|null $auth
string|null $data
string|null $userId

Return Value

void

protected bool verify(Connection $connection, string|null $auth = null, string|null $data = null)

Determine whether the given authentication token is valid.

Parameters

Connection $connection
string|null $auth
string|null $data

Return Value

bool

at line 78
void unsubscribe(Connection $connection, string|null $userId = null)

Unsubscribe from the given channel.

Parameters

Connection $connection
string|null $userId

Return Value

void

at line 125
array data()

Get the data associated with the channel.

Return Value

array