2 ms·
So you want to use new software like WebSockets without ... using new software like WebSockets? There's no free lunch here, new transport architectures require
by ajross 14y ago
So you want to use new software like WebSockets without ... using new software like WebSockets? There's no free lunch here, new transport architectures require new application architectures. If you aren't able to modify your backend then you can't do WebSockets.
Certainly Socket.io is a very simple (surprisingly so, even) implementation of a JSON-based event architecture on top of WebSockets, with integrated fallbacks to other transports on older browsers. But it requires node.js on the server side (though to be fair: it's protocol is very simple and could be reimplemented without too much trouble if you only wanted the client-side fallback stuff).