InteractsWithSockets

trait InteractsWithSockets (View source)

Properties

string|null $socket The socket ID for the user that raised the event.

Methods

$this dontBroadcastToCurrentUser()

Exclude the current user from receiving the broadcast.

$this broadcastToEveryone()

Broadcast the event to everyone.

Details

$this dontBroadcastToCurrentUser()

Exclude the current user from receiving the broadcast.

Return Value

$this

$this broadcastToEveryone()

Broadcast the event to everyone.

Return Value

$this

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/7.x/Illuminate/Broadcasting/InteractsWithSockets.html