Setting up Web Sockets with Socket.io
Too Long; Didn't Read
This past week at <a href="https://www.vikingcodeschool.com/immersive" target="_blank">Viking</a>, we learned about web sockets using <a href="https://socket.io/" target="_blank">socket.io</a> to build a chat room. I’ll boil that project done to its most basic for this post and explain some of the trickier parts in this post. Web sockets are a really interesting topic and also make a fun project to help learn about the difference between statefulness and statelessness and a good refresher on emitting and listening to custom events. What’s more, it’s really satisfying to see realtime data feeds updating multiple brower windows at once. Let’s dive in.