Websocket compatibility

is there any good js library that can solve the browser compatibility problem if you want to use websocket, in h5?

Mar.09,2021

testing the third-party websocket framework [GoEasy] has good browser compatibility, good compatibility with older browsers, good stability and real-time performance, automatic reconnection and heartbeat mechanism, and support for wss, is a good solution.


many lower versions of browsers do not support websocket very well, so it is necessary to do downward compatibility. Generally, it is troublesome to mix websocket+polling to do this. In formal projects, you can consider using third-party push frameworks such as GoEasy, which are compatible with each other, and also support the wss, heartbeat and reconnection mechanisms you mentioned. Address: https://www.goeasy.io/


you can take a look at this. README seems to be compatible with IE7
https://github.com/socketio/s.

.
Menu