N
N
nepster-web2014-04-27 05:41:33
Socket.io
nepster-web, 2014-04-27 05:41:33

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

1 answer(s)
V
Vladimir Kozhin, 2014-04-27
@nepster-web

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 question

Ask a Question

731 491 924 answers to any question