3 ms·
Awesome! Maybe I will try out some SockJS on it! I decided last night to use SockJS for a personal web application for streaming some stock analysis.
by JimmaDaRustla 13y ago
Awesome! Maybe I will try out some SockJS on it! I decided last night to use SockJS for a personal web application for streaming some stock analysis.
- derefr 13y agoSince they're already likely decoding and parsing the websocket protocol to proxy it, it'd be nice if they offered something like "SockJS-as-a-service", where Heroku handles all the different connection termination types, and just exposes a plain websocket (or maybe a raw TCP socket, even!) to your backend.
- alexwright 13y agoThe way I've handled it in the past in Varnish is just to look for the upgrade request and do basically: "Whao they wanna do websockets? I give up, return(pipe);" which means Varnish will from then on just ferry bytes from one sock to the other.
- tlrobinson 13y agoI suspect some of SockJS's fallback transports won't work, see my other comment on Socket.io: https://news.ycombinator.com/item?id=6517138 https://news.ycombinator.com/item?id=6517138 Hopefully I'll be proven wrong.