4 ms·
Well, to be honest if you want to use websockets, you better do that part in Node.js, Elixir or Go. The creator of Juggernaut, which was one of the most popular
by aclsid 9y ago
Well, to be honest if you want to use websockets, you better do that part in Node.js, Elixir or Go. The creator of Juggernaut, which was one of the most popular websocket library for Rails, ended up porting to Node.js until he said that people should stop using websockets and rely on Server Sent Events instead.
https://www.html5rocks.com/en/tutorials/eventsource/basics/ https://www.html5rocks.com/en/tutorials/eventsource/basics/
- lastofus 9y agoConsidering there is absolutely no IE or Edge support for SSE, it seems like a non-starter for a general website. https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events https://developer.mozilla.org/en-US/docs/Web/API/Server-sent...
- aclsid 9y agoThere is a polyfill for IE. https://github.com/remy/polyfills/blob/master/EventSource.js https://github.com/remy/polyfills/blob/master/EventSource.js