Is there any websocket plugin for IE?

2019-06-16 01:17发布

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

3条回答
唯我独甜
2楼-- · 2019-06-16 01:25

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楼-- · 2019-06-16 01:37

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)

查看更多
迷人小祖宗
4楼-- · 2019-06-16 01:48

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.

查看更多
登录 后发表回答