К содержимому
learnspaceYOUR NEXT CHAPTER
ПРОСТРАНСТВО ОБУЧЕНИЯ
ГлавнаяКаталог курсовМоё обучениеCoursera

Знания без границ

Учитесь у лучших университетов и компаний мира.

Открыть Coursera
Интеграция
Пространство университета
Моё пространствоСтраница курса
↵
ЯЛичный кабинетСтудент
© 2026 LearnSpaceКаждый день — возможность узнать больше.Помощь
WebSockets Protocol Explained – Master Web Development · LearnSpace
Назад в каталог
courseraIT и технологии

WebSockets Protocol Explained – Master Web Development

Курс от Packt
Средний≈ 15.3 чАнглийский
О курсеНавыкиПрограммаПреподаватели

О курсе

Updated in May 2025. This course now features Coursera Coach! A smarter way to learn with interactive, real-time conversations that help you test your knowledge, challenge assumptions, and deepen your understanding as you progress through the course. In this course, you will master WebSockets, learning to create real-time, interactive web applications with efficient two-way communication. By the end, you will be able to establish WebSocket connections, handle secure communication, and manage data transfer through WebSocket frames. You’ll also learn how to implement WebSocket headers, use the WebSocket API for event-driven applications, and troubleshoot using tools like Wireshark. Additionally, you will understand the key differences between WebSockets, AJAX, polling, and other real-time communication methods. The course starts with an introduction to core concepts like HTTP, TCP, and WebSockets. You’ll explore their roles in internet communication and the evolution of real-time data exchange. Following this, we’ll dive into opening WebSocket connections, examining the handshake process, headers, and security features such as the Sec-WebSocket-Key. You'll learn how these elements work together to enable seamless communication between clients and servers. Next, we will examine WebSocket data frames, focusing on types, fragmentation, and payload handling. You will also explore WebSockets over HTTP/2 and HTTP/3 and compare them to older technologies like AJAX and Server-Sent Events. By the end of the course, you will be able to integrate WebSockets into web applications and scale them efficiently. This course is designed for developers who want to build real-time, interactive applications. Whether you're new to WebSockets or looking to enhance your expertise, you'll gain the knowledge to implement WebSockets in web applications. It is suitable for anyone familiar with web development basics and requires no prior experience with WebSocket-specific technologies.

Навыки, которые вы освоите

Real Time DataWeb ApplicationsNetwork ProtocolsEvent-Driven ProgrammingScalabilityApplication Programming Interface (API)AjaxTCP/IPWeb DevelopmentGeneral NetworkingNetwork Analysis

Программа курса

7 модулей · 124 учебных материалов

01WebSockets Introduction16 материалов

WebSockets Introduction

Section IntroВидеоFull Course ResourcesЧтениеWhat Is the Internet?ВидеоWhat Is the HTTP ProtocolВидео

Учитесь у экспертов

Packt - Course Instructors

Преподаватель курса

WebSockets Protocol Explained – Master Web Development
В каталоге вашей программы

Инвестируйте в себя

Новые знания — в удобное для вас время.

Начать на Coursera

Обучение откроется на Coursera
в новой вкладке

Обучение на Coursera

≈ 15.3 ч

7 модулей

Язык: Английский

Субтитры: Арабский, Французский, Узбекский, Украинский, Китайский (Китай), Греческий, Итальянский, Бразильский португальский, Вьетнамский, Нидерландский, Корейский, Немецкий, Пушту, Русский, Тайский, Индонезийский, Шведский, Турецкий, Азербайджанский, Испанский, Хинди, Японский, Казахский, Венгерский, Польский

Часть программы вашего университета
Using Wireshark to Prove TCP Is PersistentВидео
AJAX and CometВидео
WebSockets IntroductionВидео
WebSocket History and SpecificationsВидео
RFCs - Did You Know?Видео
WebSocket - Use CasesВидео
WebSockets as a Communications ProtocolВидео
Examining the HTTP protocol using Dev Console and CURLВидео
Introduction to WebSockets, TCP, and IPВидео
MTU and Maximum Segment SizeВидео
Summary of TCP and IPВидео
WebSockets Introduction - AssessmentЗадание
02WebSocket Networking14 материалов

WebSocket Networking

TCP Handshake IntroductionВидеоExamining the TCP Handshake in WiresharkВидеоThe TCP/IP model (4 layer model)ВидеоLayer 1: Application LayerВидеоLayer 2: Transport Layer - PortsВидеоExample: Creating a Custom Port Number to Establish a ConnectionВидеоLayer 2: Transport Layer: Segments and HeadersВидеоLayer 3: Internet LayerВидеоLayer 4: Network Layer & MAC addressesВидеоUsing Tracert to Analyze Hops, and Network Layer SummaryВидеоSummary - WebSockets and the Network LayersВидеоSockets vs WebSocketsВидеоUnderstanding TCP Handshake and Network LayersDIALOGUEWebSocket Networking - AssessmentЗадание
03Opening A WebSocket Connection20 материалов

Opening A WebSocket Connection

Section IntroВидеоOpening a WebSocket ConnectionВидеоThe HTTP Handshake ProcessВидеоThe WebSocket API in the Dev Console and the TCP HandshakeВидеоWebSocket is an Event-Driven APIВидеоEnd-to-End vs Hop-by-Hop HTTP HeadersВидеоThe Upgrade and Connection Headers ExplainedВидеоSec-WebSocket- Headers IntroductionВидеоSec-WebSocket- Key HeaderВидеоManually Calculating Sec-WebSocket-KeyВидеоFinal Words on Sec-WebSocket-KeyВидеоBase64 Encoding - IntroВидеоBase64 Encoding - Summary and ExampleВидеоFun Example: How to Encode the Rocket Emoji?ВидеоSec-WebSocket-AcceptВидеоSec-WebSocket-ProtocolВидеоSec-WebSocket-Version & Sec-WebSocket-ExtensionsВидеоSection Summary & OutroВидеоUnderstanding Websocket HandshakesDIALOGUEOpening A WebSocket Connection - Assessment 2Задание
04Using the WebSocket API37 материалов

Using the WebSocket API

Section IntroВидеоThe Client WebSocket Object - Opening a WebSocket ConnectionВидеоProject Introduction and OverviewВидеоWebSocket Demo - Building the HTMLВидеоWebSocket Demo - Building the CSSВидеоWebSocket Server Code - Part 1 - Creating the HTTP serverВидеоWebSocket Server Code - Part 2 - Importing the "websocket" Module Using NPMВидеоWebSocket Server Code - Part 3 - Spinning Up Our WebSocket ServerВидеоProject: The WebSocket API - Establishing a WebSocket ConnectionВидеоWebSockets Are HTTP CompatibleВидеоExample- A Server Can Run Multiple Socket Connections SimultaneouslyВидеоWebSocket API - binaryType and bufferedAmountВидеоWebSocket API - Extensions and ProtocolsВидеоIntroduction to the readyState PropertyВидеоProject Code - Disable Button When Clicked, and Add Dynamic Status UpdateВидеоProject: Listen for the Open EventВидеоUsing the "onopen" Event to Change Text DynamicallyВидеоWebSocket Messages and Data - IntroductionВидеоProject: Listening for the Message EventВидеоStyling Our Table ElementВидеоProject: Listening for the Close EventВидеоProject: Listening for the Error EventВидеоClosure Codes and the wasClean PropertyВидеоExamining All 4 Values of the readyState PropertyВидеоWebSocket API Methods - send() and close()ВидеоThe CloseEvent and MessageEvent InterfaceВидеоProject: Using the send() Method to Send Data to the ServerВидеоClosing a ConnectionВидеоProject: Using the close() Method to Close the WebSocket ConnectionВидеоThe "Reason" Argument to the close() MethodВидеоExamining the Closing Handshake at the TCP & WebSocket LevelВидеоChallenge: Improve Project CodeВидеоSolution: Amending Project Code to Handle Different Closure TypesВидеоUsing the Switch Expression to Improve CodeВидеоFun Lecture - Examining Live Server WebSocket CodeВидеоUnderstanding WebSocket Client-Side ImplementationDIALOGUEUsing the WebSocket API - AssessmentЗадание
05WebSocket Data Frames23 материалов

WebSocket Data Frames

Section IntroВидеоHow HTTP/1.1 Handles DataВидеоHow HTTP/2 Handles DataВидеоCapturing SSL/TLS Keys and Configuring Wireshark to Capture HTTP/2 TrafficВидеоHTTP/2 Binary Frames - Intro to How the HTTP/2 Protocol Is NegotiatedВидеоHTTP/2 Binary Frames - Intro to HPACKВидеоHTTP/2 Binary Frames - What a Frame Looks LikeВидеоWebSocket Frames - The 6 TypesВидеоExamining a WebSocket Closure Frame - Opcode 0x8ВидеоExamining a WebSocket Ping Frame - Opcode 0x9ВидеоWebSocket Frame Header Size - Min and MaxВидеоWebSocket Data FragmentationВидеоWhat Are WebSocket Reserved Bits Used For?ВидеоControl and Non-Control FramesВидеоMasking BitВидеоMasking - IntroductionВидеоExample of Cache PoisoningВидеоPayload Length BitsВидеоMaximum Size of a WebSocket Frame PayloadВидеоHTTP vs WebSocketsВидеоOutroВидеоUnderstanding WebSocket Data FramesDIALOGUEWebSocket Data Frames - AssessmentЗадание
06AJAX, Polling, Server-Sent Events, and CORS11 материалов

AJAX, Polling, Server-Sent Events, and CORS

Misconceptions About Concurrent WebSocket ConnectionsВидеоShort Polling - An Alternative to WebSocketsВидеоLong Polling - An Alternative to WebSocketsВидеоServer-Sent Events - An Alternative to WebSocketsВидеоWebSockets Over HTTP/2ВидеоDoes HTTP/2 Replace WebSockets?ВидеоWebSockets Over HTTP/3ВидеоCORS and WebSocketsВидеоScaling WebSocketsВидеоUnderstanding WebSocket Connections and MisconceptionsDIALOGUEAJAX, Polling, Server-Sent Events, and CORS - AssessmentЗадание
07Outro3 материалов

Outro

OutroВидеоFull Course Practice AssessmentЗаданиеFull Course AssessmentЗадание