WebSockets vs. Server-Sent events/EventSource

后端 未结 6 987
清歌不尽
清歌不尽 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:04

    Here is a talk about the differences between web sockets and server sent events. Since Java EE 7 a WebSocket API is already part of the specification and it seems that server sent events will be released in the next version of the enterprise edition.

提交回复
热议问题