-
Notifications
You must be signed in to change notification settings - Fork 742
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ping and keepAlive in Ratchet #263
Comments
Thanks for tag. Modification of last time. More simple :). And I also forgot: Thanks for Ratchet ! ;) |
Nice work @SaphirAngel, thanks for sharing! I'll keep this issue open for people to check out. This functionality is something I'll add to the core once v0.2 of the RFC6455 library has been refactored. |
It's a pleasure ! Good announcement for this functionality in core, good luck for development ! :) |
PHP Catchable fatal error: Argument 2 passed to Ratchet\Server\IoConnection::__construct() must be an instance of React\EventLoop\LibEventLoop, instance of React\EventLoop\StreamSelectLoop given, called in /home/pi/serverapps/chattest/php/vendor/cboden/ratchet/src/Ratchet/Server/IoServer.php on line 94 and defined in /home/pi/serverapps/chattest/php/vendor/cboden/ratchet/src/Ratchet/Server/IoConnection.php on line 19 :( i tried to apply this fix but i have this error.. |
Hello, Have you pass a EventLoop instance in the IoServer constructor ? |
this is my IoServer Class: this is my IoConn class: this is my server.php init: and this is my app script: |
Oh, yes, sorry for this. So, the problem is that for my test, i use the libevent pecl extension. I recommend to install this extension but the problem is present and i will try to push a correction within 24 hours.
Changes must be made in the files: Sorry and thanks for feedback |
It's ok. |
i tried to install with apt-get but dont find the package... but where can i find the update? Because i have reinstalled all Ratchet :3 |
Hello everyone, I'm having connection problems that get active and this ping / pong solution would help a lot. |
Have you experienced a bug in the 0.4 branch? |
pessoal, resolvi aqui e consegui usar a versão 0.4. |
For those who want to ping or be sure that a client is present (internet lost, mobile network). We have implemented the following functions:
Ping and keepAlive
The only requirement is to have an instance of the loop event.
The commit is here : 6da3b04
Repo : https://github.com/bjtpartners/Ratchet/tree/ping-dev
There are no problem found at this time for and it's very reactive.
I will not make pull request because i use the Promise and Event Loop in Ratchet directly but i share the solution :).
If you are opinions or remarks, you're welcome :).
Just a quick question : Is there a way to get the loop event from the instance of a connection ? I have not found but you never know.
Bye :)
The text was updated successfully, but these errors were encountered: