4 ms·
So if connection resets are the problem, as opposed to router/proxy software problems... In cases where long polling seems to work as you say, why wouldn't an a
by Udo 12y ago
So if connection resets are the problem, as opposed to router/proxy software problems... In cases where long polling seems to work as you say, why wouldn't an automatic WebSocket reconnect work just as well?
- jkarneges 12y agoYou're right, in that case it'll work just as well. The problem is that it's easy to get wrong, so the developer needs to know what he/she is doing. Fortunately wrappers like Socket.io, SockJS, Primus, etc can help with this.