N
N
nepster-web2013-12-03 16:12:36
Node.js
nepster-web, 2013-12-03 16:12:36

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 answer(s)
T
Timur Shemsedinov, 2013-12-03
@MarcusAurelius

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 question

Ask a Question

731 491 924 answers to any question