Skip to the content.

Readings: Message Queues

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

2- Does socket.io use HTTP? Why?

3- What happens when a client emits an event?

4- What happens when a server emits an event? -when the server listen to the connection event. When that event is invoked, socket.io pass a socket object to our function. We then listen to all of our sockets for a chat. As defined on the client side, take the data emited from the chat and emit it back to all of our sockets.

5- What happens if a client “misses” an event?

Document the following Vocabulary Terms

Term

Preparation Materials

Socket.io Chat example

Rooms and Namespaces