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

Laravel Cloud is the best place to deploy Laravel, Nuxt, Express, Hono, Node.js, Bun, Go, Flask, Python, and more, with dedicated infrastructure available on AWS through Laravel Private Cloud.