A
A
Alexey Berdnikov2015-04-11 11:16:05
Laravel
Alexey Berdnikov, 2015-04-11 11:16:05

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!

I just go to the main page
. connection is established, everything is OK.
qNBE91u.png
In the controller
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)
https://github.com/BrainBoxLabs/brain-socket we are talking about it, I made the call to send the message directly, bypassing the events

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Berdnikov, 2015-10-08
@Groove

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 question

Ask a Question

731 491 924 answers to any question