Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
This workshop contains quiz questions and exercises to help cement your learning in this hour.
1. Do you have to use Express to use Socket.IO?
2. What happens to the list of nicknames if the server process is killed or dies?
3. Can you host your Socket.IO server and web application server in different places?
1. No. Socket.IO is independent from Express. Furthermore, Socket.IO abstracts WebSockets for you, so if you want to, you can write your own WebSockets server and handle the client-side code.
2. The list of nicknames is only persisted in memory in the examples in this hour, so if the process is killed or dies, the list of nicknames will be lost. You could use a key value store like Redis to hold this list if you wanted.