Answer the question
In order to leave comments, you need to log in
I want to write a chat using laravel-echo-server?
I want to write a chat, I use laravel-echo-server
In vue via axios, I send a message
to the controller in the controller, I call ChatEvent::dispatch( $request->input('message') )
in the event I write it to a variable and call Chanel('chat' )
in vue I listen to port 6001 and when the event fires, the code inside should work, but it does not work
Answer the question
In order to leave comments, you need to log in
The answer can be found in the documentation . Ideally, just read the necessary topics in full and you will understand what is there and where to look.
And for debugging, it is better to use the chrome debugger (or what is convenient) Network -> WS, here you need to at least check whether the application is connected. And whether it receives these messages at all.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question