Reading Notes

All the answers to some of the questions

View project on GitHub

Reading Notes for Day of 401:

Socket.io Chat Example

  • Explain to a non-technical recruiter what the Chat Example (above) does.
  • What proof of life are we getting on the backend from the above app?
  • Socket.IO gives us the i0.emit() method to send an event to everyone. What flag would you use if you want to send a message to everyone except for a certain emitting socket?

Rooms

  • What is a room and how might a room be useful?
  • How do you join a room?
  • How do you leave a room?

Namespaces

  • What is a Namespace and what does it allow you to do?
  • Each namespace potentially has its own what? (hint: 3 things)
  • Discuss a possible use case for separate namespaces

Bookmark and Review

Socket.io Emit Cheatsheet

Things I want to know more about:

back to Table of Contents