I have created a Web Socket server using c++.As we know that HTML 5 support Web Socket and we have standard Web Socket Java Script Api to communicate with web socket server.I am able to connect to web Socket server using Web Socket Api. Since Web Socket Api is supported in Only new browser.
IE version 10
Chrome version 16
Firefox version 6
Safari version 6.0
Opera version 12.10
I need to provide support for following browser version as well.
Web Socket Api Supported browser
IE version 7
Chrome version 14
Firefox version 4
Safari version 5.1
I heard about node.js and socket.io. both are supported on
Web Socket Api not Supported Browser
Internet Explorer 5.5+
Safari 3+
Google Chrome 4+
Firefox 3+
Opera 10.61+
I wanted to write java script client to connect to Web Sokcet server using Node.js/Socket.io
Does Node.js/Socket.io allow me to connect in older browser ?
You can support those browsers with Socket.io, yes, but not specifically with web sockets (as many of those browsers versions don't have web sockets).
As of November 2013, Socket.io's list of supported browsers was:
Desktop:
Mobile:
They achieve this level of support by using a variety of transports, depending on what the browser is capable of (again, from November 2013):
Since then, Socket.io has been split up into (at least) Socket.io and Engine.io where the latter provides the transports. And it seems like Engine.io's list of transports has dramatically reduced:
polling
: XHR / JSONP polling transportwebsocket
: WebSocket transportIt seems to suggest there's still a way of doing Flash sockets as well.
Presumably this reflects the fact that websockets are almost universally supported in modern browsers.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With