WebSockets与服务器发送的事件/ EventSource

可紊 提交于 2020-08-10 09:39:26

问题:

Both WebSockets and Server-Sent Events are capable of pushing data to browsers. WebSockets服务器发送事件都能够将数据推送到浏览器。 To me they seem to be competing technologies. 在我看来,它们似乎是竞争技术。 What is the difference between them? 它们之间有什么区别? When would you choose one over the other? 您何时会选择一个?


解决方案:

参考一: https://stackoom.com/question/LnZc/WebSockets与服务器发送的事件-EventSource
参考二: https://oldbug.net/q/LnZc/WebSockets-vs-Server-Sent-events-EventSource
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!