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.
$this broadcastToEveryone()
Broadcast the event to everyone.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.7/Illuminate/Broadcasting/InteractsWithSockets.html