InteractsWithSockets (Broadcasting)

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/5.3/Illuminate/Broadcasting/InteractsWithSockets.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部