Replies: 2 comments 2 replies
-
I would like to share my experience as I have done the same thing myself. First, Ratchet is a popular php WebSocket Server, checking its document you can see it uses ZeroMQ to make ws server talk to http server. I don't want to use ZeroMQ so I try some other pub sub tools. RabbitMQ is definitely an option but I don't want to use it either. So finally I resort to redis pub sub. For me it has lowest learning curve and dependency. So far it works well. If you want to "communicate directly with SocketIO" you may consider zeromq but I don't think an "intermediary server" is necessarily a bad thing. For us we already use redis, so it fits the bill. |
Beta Was this translation helpful? Give feedback.
-
Try maintained Elephant.IO. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have an old project with Socket.IO 1 that I must migrate to Socket.IO 4.
It happens that I use the Elephant.IO library in PHP to call the events available on the server with Socket IO.
It so happens that the Elephant.io project has been discontinued and Socket.IO support ended in version 2.
Another project recommended by the Socket.IO website references a library that hasn't had updates for 8 years and stopped support in Socket.IO 3.
What should I currently use to fire events to the Socket.IO server from PHP Server?
I've read in a few places that one option would be to have RabbitMQ, but I don't think it's good to have another intermediary server if I can communicate directly with SocketIO.
Beta Was this translation helpful? Give feedback.
All reactions