Category : websocket

I want to check if my websocket is working momentarily. For this, I assigned a function inside the while loop. In the corresponding function, I print the due date to a file named server_report. Is this process reasonable? Because there will be a continuous writing process instantly to the file. Sourc..

Read more

The title is confusing. Basically, I’m unable to access Laravel’s utilities in classes that don’t belong to the framework. Error is: Call to a member function connection() on null in C:xampphtdocsblazocketvendorlaravelframeworksrcIlluminateDatabas eEloquentModel.php:1571 I have a Websocket Server based on Ratchet library, it has the following strucutre: $server = new RatchetApp(‘localhost’, 8080); $server->route(‘/api/socket’, new WebSocketHandler, array(‘*’)); ..

Read more

I’m new to websockets and I have a strange issue happening. I have set up websockets on my local drive and the chat functions work fine. The problem is that if I refresh the page I now have the credentials of the last person that has login in, username and everything else now switch’s to ..

Read more

I’ve already checked plenty of questions and tutorials and I’m following the official documentation from socketme portal. I’m running this on XAMPP/Localhost. Websocket works, when I’m not using the WAMP interface. Otherwise, it fails to connect and doesn’t state any reason. Error is: "app.js:6200 WebSocket connection to ‘ws://localhost:8080/socket’ failed: connection closed unreachable" Server $server = ..

Read more