SocketIO (with websockets) – the details. Updated April 2023
Socket io. Learn how to harness real-time communication on the web. W/Cluster Module, React and a real time game!
Created by Robert Bunch | 24.5 hours on-demand video c ourse
Version 4 update is almost complete. I will leave the v2 sections up for a sunset period, so both are posted at the moment. Please take note of the section title if you are just starting out to make sure you are taking the version you want.
Websockets are one of the coolest api’s to ever hit the web. They allow the browser real-time communication, bridging one of the last gaps in both human and web-based communication. Socket io is the king library that uses websockets under the hood. There’s a good chance if you’re reading this, you’ve heard about socketio. Maybe even done a tutorial on it. But how far did you get? In my experience, the vast majority of the material on the web goes no farther than a quick-start, instant chat app. You don’t learn how anything works, never look at the docs, and are stuck at the end wondering what to do now. Is that all socketio can do? The remaining shred of material is waaaaay over everyone’s head. The fact that the websocket API was standardized in 2011 and most developers still don’t know how to use it is evidence of the gap.
What you’ll learn
- Socketio. That’s (mostly) all we cover so when you finish, you’ll know it!
- Setup a socketio application between the browser and an Express server and run real-time back and forth
- Understand the basics of websockets and how they work
- The basics of the transport layer and how a packet works