Packt
Authentic Node.js WebSocket Server Workshop
Packt

Authentic Node.js WebSocket Server Workshop

包含在 Coursera Plus

深入了解一个主题并学习基础知识。
中级 等级

推荐体验

1 周 完成
在 10 小时 一周
灵活的计划
自行安排学习进度
深入了解一个主题并学习基础知识。
中级 等级

推荐体验

1 周 完成
在 10 小时 一周
灵活的计划
自行安排学习进度

您将学到什么

  • Manually implement the WebSocket handshake protocol, including SHA1 and base64 encoding

  • Parse and process raw WebSocket data frames using buffers and bitwise operations

  • Construct and send WebSocket messages from server to client with protocol-compliant headers

  • Handle connection closure, masking issues, and ping/pong logic as per RFC 6455

要了解的详细信息

可分享的证书

添加到您的领英档案

最近已更新!

May 2025

作业

7 项作业

授课语言:英语(English)

了解顶级公司的员工如何掌握热门技能

Petrobras, TATA, Danone, Capgemini, P&G 和 L'Oreal 的徽标

该课程共有6个模块

In this module, we will explore the foundations of WebSocket communication, including how the protocol upgrades from HTTP to enable persistent, two-way connections. We’ll also cover the critical role RFC 6455 plays in ensuring compatibility and protocol integrity. This section sets the groundwork for building an authentic WebSocket server.

涵盖的内容

2个视频1篇阅读材料

In this module, we will build a functional Node.js HTTP server from the ground up. We'll set up the client-side interface, structure our server-side code using custom modules, and implement error handling with debugging support. These steps prepare us for seamlessly introducing WebSocket capabilities.

涵盖的内容

6个视频1个作业1个插件

In this module, we will focus on initiating a WebSocket connection by listening to the HTTP upgrade event. We’ll break down client headers, use Node’s crypto module to generate a valid Sec-WebSocket-Accept key, and validate the handshake process. Testing ensures our server can establish real-time communication with any compliant client.

涵盖的内容

9个视频1个作业1个插件

In this module, we will dive deep into the anatomy of WebSocket frames. From extracting and unmasking payloads to parsing frame headers with bitwise operations, we’ll cover how the server receives and processes both small and large messages. Debugging tools will assist in refining the logic for real-time, binary-safe communication.

涵盖的内容

34个视频1个作业1个插件

In this module, we will construct and send WebSocket frames from server to client. We’ll handle everything from setting FIN and OPCODE bits to encoding payloads and managing variable-length headers. By the end, our server will be capable of echoing messages and handling client responses with precision.

涵盖的内容

11个视频1个作业1个插件

In this module, we will master the process of closing a WebSocket connection. From detecting ping/pong and malformed frames to analyzing closure behavior via the CloseEvent object, we’ll build a fully RFC-compliant server closure workflow. We'll also address edge cases like unmasked data and large payload termination.

涵盖的内容

16个视频3个作业

位教师

Packt - Course Instructors
Packt
971 门课程229,122 名学生

提供方

Packt

从 Networking 浏览更多内容

人们为什么选择 Coursera 来帮助自己实现职业发展

Felipe M.
自 2018开始学习的学生
''能够按照自己的速度和节奏学习课程是一次很棒的经历。只要符合自己的时间表和心情,我就可以学习。'
Jennifer J.
自 2020开始学习的学生
''我直接将从课程中学到的概念和技能应用到一个令人兴奋的新工作项目中。'
Larry W.
自 2021开始学习的学生
''如果我的大学不提供我需要的主题课程,Coursera 便是最好的去处之一。'
Chaitanya A.
''学习不仅仅是在工作中做的更好:它远不止于此。Coursera 让我无限制地学习。'
Coursera Plus

通过 Coursera Plus 开启新生涯

无限制访问 10,000+ 世界一流的课程、实践项目和就业就绪证书课程 - 所有这些都包含在您的订阅中

通过在线学位推动您的职业生涯

获取世界一流大学的学位 - 100% 在线

加入超过 3400 家选择 Coursera for Business 的全球公司

提升员工的技能,使其在数字经济中脱颖而出

常见问题