Build apps where the client can push messages to the server and talk in real-time! You’ll start by learning long polling with Vanilla JavaScript and Node.js, then open web sockets by hand, and finally, you’ll learn some excellent web socket abstractions with SocketIO. You’ll learn back off and retry strategies along the way, as well as use HTTP2 push in the browser!
Overview
Syllabus
- Introduction
- Code Setup
- Long Polling Overview & Backend Setup
- Polling with setTimeout
- Polling with requestAnimationFrame
- Backoff & Retry Overview
- Coding Backoff & Retry
- HTTP/2 Push Overview
- Coding a HTTP/2 Push Backend
- Coding a HTTP/2 Push Frontend
- Managing HTTP/2 Connections
- Raw WebSockets Setup
- Establishing a WebSocket Connection
- Using WebSockets
- Frames & Parsing Message Buffers
- Managing Web Socket Connections
- Socket.IO Overview
- Establishing a Socket.IO Connection
- Sending & Receiving Data
- Wrapping Up
Taught by
Brian Holt