WebSockets vs. Server-Sent events/EventSource

后端 未结 6 837
清歌不尽
清歌不尽 2020-11-22 02:00

Both WebSockets and Server-Sent Events are capable of pushing data to browsers. To me they seem to be competing technologies. What is the difference between them? When would

6条回答
  •  囚心锁ツ
    2020-11-22 02:25

    Opera, Chrome, Safari supports SSE, Chrome, Safari supports SSE inside of SharedWorker Firefox supports XMLHttpRequest readyState interactive, so we can make EventSource polyfil for Firefox

提交回复
热议问题