Back to Browse

Build a Real-Time WebSocket Application

13.6K views
Nov 12, 2024
8:54

In this episode, we introduce WebSockets for real-time data communication. Using Deno's WebStandard API, we walk through the process of developing a WebSocket server and client. We explore upgrading HTTP connections to WebSockets, handling events such as 'open', 'message', and 'close'. This tutorial covers everything needed to build a web application that uses WebSockets for efficient real-time data transfer. 00:00 Introduction to HTTP and Real-Time Data 00:20 Setting Up the WebSocket Server 02:01 Creating the WebSocket Client 04:28 Handling WebSocket Events 08:12 Deploying Your WebSocket Application 08:27 Use Cases for WebSockets Source code: https://github.com/MoonHighway/deno-2-course/tree/main/15-build-a-realtime-websocket-app Deno is an all-in-one batteries included JavaScript and TypeScript toolchain. Website: https://deno.com GitHub: https://github.com/denoland Discord: https://discord.gg/deno Twitter: https:/twitter.com/deno_land

Download

1 formats

Video Formats

360pmp410.2 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Build a Real-Time WebSocket Application | NatokHD