Real-time messaging with WebSockets | Build a Video Call App Part 4

Опубликовано: 27 Август 2024
на канале: Cloudflare Developers
885
31

Welcome back to our series on building a video call app with Durable Objects! In the last video, we built a WebSocket server. Now, we'll take it a step further by enabling our server to receive and broadcast messages. In this video, you'll learn how to route and broadcast incoming messages from WebSocket connections and implement error handling such as closed WebSocket connections. By the end, you will have completed the backend for our video call app!

Series Part 1:    • Introduction to Durable Objects | Bui...  
Series Part 2:    • What are Durable Objects? | Build a V...  
Series Part 3:    • Create a Serverless Websocket “Backen...  
Series Part 4:    • Real-time messaging with WebSockets |...  
Series Part 5:    • Building the App Frontend & UI | Buil...  
Series Part 6:    • Making and Answering WebRTC Calls | B...  
Series Part 7:    • Deploy Your Video Call App | Build a ...  

Create an account on Cloudflare today for free: https://dash.cloudflare.com/sign-up

Useful links mentioned:
Cloudflare Durable Objects: https://developers.cloudflare.com/dur...
Github code: https://github.com/megaconfidence/veet

00:00 Intro
0:51 Part 3 recap
1:11 Code the WebSocket Message() function
5:11 Code the WebSocket broadcast() function
8:18 Test broadcast messaging locally
10:29 WebSocket error handling

#cloudflare #cloudflareworkers #developer #WebSockets #DurableObjects #Serverless #Stateful #ServerlessApps #StatefulServerless #RealTimeApps #FullStackDevelopment #VideoCallApp