Is there any websocket plugin for IE?

2019-06-16 01:07发布

问题:

Is there any plugin for IE, with I can use Websockets in IE 7-8-9? I haven't found any :(

回答1:

One of the fallbacks used by socket.io is the flash one: gimite/web-socket-js.

It uses flash to establish a socket connection. Because of this you can get WebSocket support on pretty much any legacy platform, since they all have flash.



回答2:

There is no native WS support until Internet Explorer 10. However, you might consider using a JavaScript library such as Socket.IO, which can be used for cross-browser WebSockets support.



回答3:

I wrote a client socket script as said by @igorw which currently works in IE 9 (hopefully, IE 8 also) and other modern browsers!! (Checked in Chrome Version 33 and Firefox 27)

https://github.com/sk8terboi87/labs/tree/sockets

(Btw: server socket is done using php http://socketo.me)

(For explanation: http://codelikeapoem.com/2014/03/php-socket-programming-part-ii.html)