View on GitHub

401-reading-notes

CLASS 13

Message Queue

REVIEW, RESEARCH AND DISCUSS

What does it mean that web sockets are bidirectional? Why is this useful?

Does socket.io use HTTP? Why?

What happens when a client emits an event?

What happens when a server emits an event?

What happens if a client “misses” an event?

How can we mitigate this?

TERMS:

The WebSocket is a way to exchange data between browser and server via a persistent connection. The data can be passed in both directions as “packets”, without breaking the connection and additional HTTP-requests.