Replies: 2 comments
-
A PR for this would be much appreciated, but is not something that is high on my priority list. |
Beta Was this translation helpful? Give feedback.
-
It's 2022, and SockJS is useless when connections are made in Service Workers since the only transport it supports is WebSockets. It's possible to use WebSockets without SockJS in modern day. The main advantage of SockJS is SockJS protocol and fall-backs that allow more or less reliable connection in edge cases where firewalls with DPI (deep packet inspection) / proxies / other third-party software prevent WebSocket connections. |
Beta Was this translation helpful? Give feedback.
-
I am using SockJS in environments where an embedded JavaScript interpreter is used.
I have implemented fetch() in platform specific exposed primitives, and I'd like SockJS to use that fetch() API.
If fetch is available, which at this point it will be in most browsers, then it should be used instead of an XMLHttpRequest based transport.
Beta Was this translation helpful? Give feedback.
All reactions