sockjs/sockjs-client · GitHub

SockJS is a browser JavaScript library that provides a WebSocket-like object. SockJS gives you a coherent, cross-browser, Javascript API which creates a low latency, full duplex, cross-domain communication channel between the browser and the web server.

Under the hood SockJS tries to use native WebSockets first. If that fails it can use a variety of browser-specific transport protocols and presents them through WebSocket-like abstractions.

SockJS is intended to work for all modern browsers and in environments which don’t support WebSocket protocol, for example behind restrictive corporate proxies.

via sockjs/sockjs-client · GitHub.

Een van de problemen met socket.io (zoals ik o.a hier gebruik) is dat het nóg een extra poort is die je in je firewall open moet zetten. Op mijn Raspberry Pi thuis is dat natuurlijk niet direct een probleem, maar ik weet niet 100% zeker of die verbinding ook overal onderweg door alle proxies en zo heen komt (iets om nog testen). Sockjs zou daar een alternatief voor moeten zijn.