Is there any infrastructure that supports Websocket and returns to other methods when it is not supported in the client browser?

I was implementing an AJAX implementation and would like to use Websocket when it is supported by the client web browser. Are there any frameworks that support Websocket, but when accessing other methods when a client side is detected, they do not support Websocket.

+4
source share
5 answers

Yes, kind of see www.kaazing.org

Kaazing Gateway supports all major browsers (Firefox version 1.5 and higher, Internet Explorer version 5.5 and higher, Safari version 3.0 and higher, Opera version 9.5 and higher, and Google Chrome version 0.2 and higher).

+5
source

There is also an atmosphere

http://atmosphere.dev.java.net 

which support both client and server.

+6
source

Socket.io is for this.

http://socket.io/

This is just javascript that tries to use several different transport methods, including XHR long-polling, WebSocket and FlashSocket among others.

+4
source

You can also use Nirvana from www.my-channels.com.

If WebSocket is not supported, it will transparently descend to a comet-based approach.

+3
source

Of course, you can try using jWebSocket, which is a clean, bi-directional Java / JavaScript communication solution for the Web — safe, reliable, and fast. jWebSocket is provided to you to create innovative HTML5-based streaming and communication applications on the Internet. HTML5 WebSockets will replace existing XHR approaches as well as Comet services with new flexible and ultra-high bidirectional TCP socket communications technology. jWebSocket is an open source Java and JavaScript implementation for the HTML5 WebSocket protocol with a huge range of extensions. Some examples or examples can be seen on the website, you can visit it here: https://jwebsocket.org/

+2
source

Source: https://habr.com/ru/post/1311584/


All Articles