Packt
Authentic Node.js WebSocket Server Workshop

Ce cours n'est pas disponible en Français (France)

Nous sommes actuellement en train de le traduire dans plus de langues.
Packt

Authentic Node.js WebSocket Server Workshop

Inclus avec Coursera Plus

Obtenez un aperçu d'un sujet et apprenez les principes fondamentaux.
niveau Intermédiaire

Expérience recommandée

12 heures pour terminer
3 semaines à 4 heures par semaine
Planning flexible
Apprenez à votre propre rythme
Obtenez un aperçu d'un sujet et apprenez les principes fondamentaux.
niveau Intermédiaire

Expérience recommandée

12 heures pour terminer
3 semaines à 4 heures par semaine
Planning flexible
Apprenez à votre propre rythme

Ce que vous apprendrez

  • 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

Compétences que vous acquerrez

  • Catégorie : Web Servers
  • Catégorie : Web Applications
  • Catégorie : Javascript
  • Catégorie : Debugging
  • Catégorie : Cryptography
  • Catégorie : Node.JS
  • Catégorie : Full-Stack Web Development
  • Catégorie : Back-End Web Development
  • Catégorie : TCP/IP
  • Catégorie : Network Protocols
  • Catégorie : Real Time Data

Détails à connaître

Certificat partageable

Ajouter à votre profil LinkedIn

Récemment mis à jour !

mai 2025

Évaluations

7 devoirs

Enseigné en Anglais

Découvrez comment les employés des entreprises prestigieuses maîtrisent des compétences recherchées

 logos de Petrobras, TATA, Danone, Capgemini, P&G et L'Oreal

Il y a 6 modules dans ce cours

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.

Inclus

2 vidéos1 lecture

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.

Inclus

6 vidéos1 devoir1 plugin

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.

Inclus

9 vidéos1 devoir1 plugin

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.

Inclus

34 vidéos1 devoir1 plugin

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.

Inclus

11 vidéos1 devoir1 plugin

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.

Inclus

16 vidéos3 devoirs

Obtenez un certificat professionnel

Ajoutez ce titre à votre profil LinkedIn, à votre curriculum vitae ou à votre CV. Partagez-le sur les médias sociaux et dans votre évaluation des performances.

Instructeur

Packt - Course Instructors
Packt
752 Cours128 178 apprenants

Offert par

Packt

En savoir plus sur Networking

Pour quelles raisons les étudiants sur Coursera nous choisissent-ils pour leur carrière ?

Felipe M.
Étudiant(e) depuis 2018
’Pouvoir suivre des cours à mon rythme à été une expérience extraordinaire. Je peux apprendre chaque fois que mon emploi du temps me le permet et en fonction de mon humeur.’
Jennifer J.
Étudiant(e) depuis 2020
’J'ai directement appliqué les concepts et les compétences que j'ai appris de mes cours à un nouveau projet passionnant au travail.’
Larry W.
Étudiant(e) depuis 2021
’Lorsque j'ai besoin de cours sur des sujets que mon université ne propose pas, Coursera est l'un des meilleurs endroits où se rendre.’
Chaitanya A.
’Apprendre, ce n'est pas seulement s'améliorer dans son travail : c'est bien plus que cela. Coursera me permet d'apprendre sans limites.’
Coursera Plus

Ouvrez de nouvelles portes avec Coursera Plus

Accès illimité à 10,000+ cours de niveau international, projets pratiques et programmes de certification prêts à l'emploi - tous inclus dans votre abonnement.

Faites progresser votre carrière avec un diplôme en ligne

Obtenez un diplôme auprès d’universités de renommée mondiale - 100 % en ligne

Rejoignez plus de 3 400 entreprises mondiales qui ont choisi Coursera pour les affaires

Améliorez les compétences de vos employés pour exceller dans l’économie numérique

Foire Aux Questions