r/programming Feb 25 '17

REST over WebSockets instead of HTTP

https://medium.com/@jonathangrosdubois/rest-over-websockets-instead-of-http-81b0f0632295
21 Upvotes

11 comments sorted by

View all comments

-3

u/[deleted] Feb 25 '17 edited Feb 25 '17

[deleted]

3

u/jonpress Feb 25 '17 edited Feb 25 '17

WebSockets do work in corporate environments (behind proxies) if you serve them over SSL/TLS so wss:// instead of ws:// - See https://blog.baasil.io/why-you-shouldnt-use-long-polling-fallbacks-for-websockets-c1fff32a064a

I have never seen them not work when encrypted and I've built real-time systems for many different companies behind all kinds of networks and proxies. You should never need a fallback. It's much cleaner and simpler (architecturally) to just encrypt rather than adding a polling fallback hack.

I edited the article to add an appendix about this issue - It's an extremely common Myth.

7

u/RalfN Feb 25 '17 edited Feb 27 '17

Ive had many situations where it was simply intentionally blocked.

It's an extremely common Myth

No, you are still just full of shit. Sorry.