Create a serverless websocket 'backend'

Last updated Apr 23, 2026 In this video, we'll create a WebSocket backend using serverless technology, making the process simpler than ever before. You'll learn how to create your first Durable Object, set up a WebSocket server to coordinate connections, and keep track of connected clients.

Related content

For additional resources on learning Durable Objects with Cloudflare, refer to the following resources:

Watch Episode 1: Introduction to the series

We present an overview of the series, discuss its underlying architecture, and access resources to set up the project locally.

Watch Episode 2: What are Durable Objects?

We show how Durable Objects work and start building a video call app together.

Watch Episode 3: Create a serverless websocket 'backend'

We create a WebSocket backend using serverless technology, making the process simpler than ever before.

Watch Episode 4: Real-time messaging with WebSockets

We learn how to route and broadcast incoming messages from WebSocket connections and implement error handling such as closed WebSocket connections.

Watch Episode 5: Build the app frontend and UI

We configure the frontend starter code, connect to Durable Objects using a call room ID, and display a local video preview.

Watch Episode 6: Make and answer WebRTC calls

We expand the frontend functionality by adding functionality for making and answering WebRTC video calls.

Watch Episode 7: Deploy your video call app

In this final episode, we configure the remaining functionalities. By the end, your app will be fully functional and ready for deployment.

Was this helpful?

YesNo

Create a serverless websocket 'backend' - 图1Docs

{"@context":"https://schema.org","@type":"WebPage","@id":"https://developers.cloudflare.com/learning-paths/durable-objects-course/series/serverless-websocket-backend-3/#page","headline":"Create a serverless websocket 'backend'","description":"Learn about create a serverless websocket backend in this guide.","url":"https://developers.cloudflare.com/learning-paths/durable-objects-course/series/serverless-websocket-backend-3/","inLanguage":"en","image":"https://developers.cloudflare.com/learning-paths/durable-objects-course/series/serverless-websocket-backend-3/og.png?v=0a19e4a2006958c5","dateModified":"2026-04-23","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}


description: Learn how Durable Objects provide stateful serverless. title: What are Durable Objects? image: https://developers.cloudflare.com/learning-paths/durable-objects-course/series/what-are-durable-objects-2/og.png?v=86b44c6ec0a28ad5


Skip to content

Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/learning-paths/llms.txt
Use this file to discover all available pages before exploring further.