A Complete Guide to WebSockets

A Complete Guide to WebSockets

English | MP4 | AVC 1280×720 | AAC 44KHz 2ch | 6 Hours | 1.95 GB


Build, Scale and Secure Vanilla WebSockets

WebSockets technology is a bidirectional, full-duplex protocol for communication between client and server over the web. It has been standardized in 2011 and it’s fully compatible with HTTP. This protocol enables realtime applications such as chatting, notifications, live feed, multiplayer gaming, and other use cases.

In this course, you will learn what the WebSocket protocol is and why it was invented. You learn the pros and cons of WebSockets and when to use it. You will also learn how to horizontally scale and secure WebSockets in your applications and be able to build a real-time multiplayer game and chatting application. This course also has a special section that discusses advanced WebSockets topics such as HTTP/2 and how the protocol looks in Wireshark.

What you’ll learn

  • WebSockets Protocol
  • How to Scale WebSockets Connections
  • How to Secure WebSockets with wss://
  • Building a MultiPlayer game with WebSockets
  • How WebSockets Work in the Wire
  • How WebSockets works with HTTP/2


+ Table of Contents

Introduction to HTTP
1 Introduction
2 The OSI Model
3 TCP vs UDP
4 What is HTTP
5 What is a Web Server

Introduction to WebSockets
6 HTTP
7 The WebSockets Protocol
8 The WebSockets Handshake
9 WebSockets Use cases
10 Code Example
11 WebSockets Pros & Cons
12 Do You Have to Use WebSockets

Scaling WebSockets
13 How to Horizontally Scale WebSockets
14 Scaling WebSockets with HAProxy, Redis and Node JS (Group Chat Application)

Building Multi-player Games with WebSockets
15 Introduction
16 Game Spec
17 Connecting to Server
18 Creating a Game
19 Join a Game
20 Play Game
21 Broadcasting State
22 Going through a full Example before Coding
23 Connect Code
24 Create Game Code
25 Join Game Code
26 Play Game Code
27 Broadcast State Code

Advanced WebSockets
28 Securing WebSockets with HAProxy
29 How WebSockets Work with HTTP2 (RFC8441 Explained)
30 WebSockets under the hood (Wireshark)