Simple Way to Implement Server Sent Events in Node.js?

前端 未结 6 1292
南方客
南方客 2021-01-31 06:11

I\'ve looked around and it seems as if all the ways to implement SSEs in Node.js are through more complex code, but it seems like there should be an easier way to send and recei

6条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-31 06:47

    I found SSE implementation in node.js.

    Github link: https://github.com/einaros/sse.js

    NPM module:https://www.npmjs.com/package/sse

    Will above link helps you ?

提交回复
热议问题