Questions tagged as 'ratchet'

0
answers

How to identify the user in Ratchet PHP

I'm creating a multi-room chat with websockets, using PHP Ratchet. The framework itself facilitates the process of identifying the user, searching for their name through cookies, as can be seen here: link . > In my localhost, I can not get th...
asked by 29.03.2017 / 22:44
1
answer

Use PHP WebSocket Ratchet online

I'm trying to use Ratchet to create WebSockets in PHP on a site I own. When I ran the tests ( localhost ) everything worked perfectly, but when I try to put it online, it does not run the connection. Reading more on the sub...
asked by 04.07.2016 / 19:17
0
answers

Run WebSocket with the hosted application

The project is a chat with php, Mysql and AJAX. I'm using a WebSocket with Ratchet to run in real time. It ran all right on localhost, but when hosting the project I could not open the connection again when I accessed the websocket url. &l...
asked by 11.07.2018 / 21:39
0
answers

Pass Variable onOpen PHP Ratchet Websockets

How can I pass the internal user code in the Ratchet PHP onOpen function? I need to pass the code to be able to mark the user with the online status; public function onOpen(ConnectionInterface $conn){ $this->clients->attach($conn...
asked by 27.06.2018 / 18:21
0
answers

Passing Variable to Websockets in VUE.js

I'm starting to use VUE + Websockets, I'm using Ratchet. I need to pass a variable to my server.php file (WS execution file), My front looks like this: var self = this; self.ws = new WebSocket('ws://localhost:9000'); self.ws.onopen = fu...
asked by 12.06.2018 / 05:20
0
answers

Change user status when online with websockets (ratChet php)

I'm doing a chat using websockets with ratChet, and I have a question regarding the status of the user. I made the page load a list of all the contacts the user has, and when the server receives the connection from a user I do a search for th...
asked by 06.01.2018 / 13:08
0
answers

Send message to client when there is change in system with Websocket Ratchet PHP?

Hello, I made a PHP WebSocket with Ratchet. The server.php is as follows: require "../vendor/autoload.php"; use Ratchet\Server\IoServer; use Ratchet\Http\HttpServer; use Ratchet\WebSocket\WsServer; use App\Chat; $server = IoServer::fa...
asked by 11.01.2017 / 23:02