Inorder to support event streams in IE and other mobile browsers i'm attempting to use event-source-polyfill ( https://www.npmjs.com/package/event-source-polyfill ).
Can anyone please provide an example on how it could be used on a node service (or) it is just adding it via npm install and then we should be all set? From the documentation it looks like there are some server side requirements ( https://www.npmjs.com/package/event-source-polyfill#server-side-requirements ) out of which the,
So after npm install event-source-polyfill and then completing the steps from 1,2 and 3 it would eventually work in IE is that a fair understanding.
您还需要将脚本添加到HTML:
<script src="eventsource.js"></script>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.