Is there a Microsoft equivalent for HTML5 Server-Sent Events?

守給你的承諾、 提交于 2019-11-29 19:37:10

In a word, no.

Microsoft has not included SSE or an equivalent of SSE in any version of IE. IMO, you have two good options:

  1. Use a polyfill - My tests with this polyfill in IE10 and IE11 were all successful. Since it starts with if ("EventSource" in global) return;, it'll only run in browsers that do not support EventSource.
  2. Use instead - Although it requires more server-side setup (The ws:// protocol), it works in IE10 and 11 and provides more options such as bi-directional communication.

SSE native support for IE is not there. You can achieve same thing using polyfill

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!