Answer the question
In order to leave comments, you need to log in
Why is SockJS better than Socket.IO?
What is better to use for persistent connections?
I started learning with Socket.IO, but have accumulated a lot of complaints about this case and all are directed to SockJS. So why is SockJS better?
Answer the question
In order to leave comments, you need to log in
I also first read these complaints and started using sockjs - it works really more stable and has many transports that it can pick up on its own in case of a failed connection, especially useful for CORS requests, BUT! sockjs can only run on one cluster, it does not have session storage for different workers and servers, which means it is a crash for large scalable applications. socket.io has the ability to connect RedisStorage to store sessions in redis.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question