trait InteractsWithSockets

Properties

string|null $socket

The socket ID for the user that raised the event.

Methods

dontBroadcastToCurrentUser()

Exclude the current user from receiving the broadcast.

broadcastToEveryone()

Broadcast the event to everyone.

Details

at line 21
InteractsWithSockets dontBroadcastToCurrentUser()

Exclude the current user from receiving the broadcast.

Return Value

InteractsWithSockets

at line 33
InteractsWithSockets broadcastToEveryone()

Broadcast the event to everyone.

Return Value

InteractsWithSockets