Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Codecademy

Learn WebSockets

via Codecademy

Overview

Build real-time applications like chatrooms and multiplayer games with WebSockets!

### Why Learn WebSockets?

WebSockets is a powerful communication protocol that allows for bidirectional and continuous communication between a server and its clients. Whereas basic HTTP connections are used to build static websites, WebSockets power real-time applications such as browser-based chatrooms, live sports trackers, multiplayer video games, and much more!

### Take-Away Skills

You will learn how WebSockets and HTTP work hand-in-hand to establish a persistent connection as well as the many benefits that WebSockets provide compared to HTTP. You will also be able to use the popular `ws` package and the browser-native `WebSocket` API to build a chatroom application and a fast-paced multiplayer game!

Syllabus

  • Introduction to WebSockets: Learn the concepts underlying all WebSocket applications, including the WebSocket handshake, persistence, and communication patterns.
    • Lesson: What Are WebSockets?
    • Quiz: Introduction to WebSockets
  • Build a WebSocket Application: Level up your conceptual knowledge by learning the `ws` package and the `WebSocket` API to build a WebSocket application.
    • Lesson: WebSockets Tutorial: Chatroom
    • Quiz: Build a WebSocket Application
    • Project: Hot Potato

Taught by

Kenny Lin

Reviews

4.6 rating at Codecademy based on 35 ratings

Start your review of Learn WebSockets

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.