Answer the question
In order to leave comments, you need to log in
SSE vs SOCKET.IO
Please tell me what is the difference between SSE (Server-Sent Events) and SOCKET.IO, which is better to use?
Answer the question
In order to leave comments, you need to log in
1. SSE is unidirectional, only the transmission of events from the server to the client, and sockets are bidirectional, you can send messages on the initiative of either party and make responses to them. When using SSE, the client still needs to communicate with the server via plain AJAX/JSON.
2. SSE is an add-on over HTTP and it perfectly passes through firewalls and gateways, unlike sockets.
3. SSE is easier to implement, both on the server and on the client.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question