【发布时间】:2018-08-22 07:05:28
【问题描述】:
I am following this tutorial in Socket.io, vue.js and Laravel using laravel echo server
我在带有socket.io的Laravel-echo-server中有以下代码,我没有使用Pusher和redis
window.Echo.private('Room Name')
.on('Channel Name', (e) => {
//Code to receive the message
});
我们是否有任何选项可以在新用户加入时通知成员。我尝试在 OnJoin 上搜索,但似乎没有。
我的发现
我看到这篇文章:https://laravel.com/docs/5.6/broadcasting#presence-channels 但这是使用 Pusher/redis。但我正在使用带有 Laravel 和 vue.js 的 socket.io
【问题讨论】:
标签: laravel vue.js socket.io laravel-5.5 laravel-echo