Answer the question
In order to leave comments, you need to log in
Why aren't BrainSocket messages sent (Laravel package)?
Hello! Has anyone used BrainSocket?
The question is that I don’t understand how to send a message from the server.
The service is running, it reacts to page updates by breaking the connection and installing a new one.
$php artisan brainsocket:start
WebSocket server started on port:8080
Connection Established!
Connection 427 has disconnected
Connection Established!
public function index() {
\BrainSocket::message('comment.add', ['message' => 'Comment Added']);
...
}
So this message is not sent (I don’t see it in the console, I don’t see it in Firebug either) Answer the question
In order to leave comments, you need to log in
Stopped at dklab.ru/lib/dklab_realplexor
How to send a message from the server to the web socket channel?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question