#3-使用Laravel-echo和Laravel WebSockets软件包窃听客户端事件|实时聊天应用



在本视频中,我们将一起解决滚动问题。如果我们发送一些消息,则必须滚动到底部才能看到该消息。

我们看这部影片的第二件事是一个客户事件。例如,当您的朋友在键入内容时,您可能在聊天应用程序中看到过,并且您在Messenger中收到了有关John在键入内容的反馈。我们将借助Laravel-echo耳语功能和Laravel Web套接字包客户端事件配置选项来实现这一目标。

#?:????????????&?????????????

#?:????-??????????,???.????-????

???????????????????????????????????:
https://github.com/qirolab/Laravel-WebSockets-Chat-Example

????-??????????(???????,?????,???????-????)????????:

DigitalOcean推荐
https://m.do.co/c/e740238537d0

另外,请关注我们:
????????:https://fb.com/qirolab
???????:https://twitter.com/qirolab

21 comments
  1. First you should uncomment this line. otherwise it will give broadcast/auth error. config app then un comment this line . AppProvidersBroadcastServiceProvider::class,

  2. hello sir this is amazing…! i followed this series and all working well . But , in my case i want to send message to specific user (like by selecting specific user from list ) , how it will achieve?? should i make new channel for it or what?

  3. I am trying to run this sample on server but when i try to run admin/websocket and click connect it says "Channels current state is unavailable" please help me how can i fix it.

  4. Большое спасибо за Ваши уроки (особенно в новый Год)! С новым годом, здоровья, счастья, исполнения желаний и побольше таких классных уроков!

Comments are closed.