---
description: Learn about create a serverless websocket backend in this guide.
title: Create a serverless websocket 'backend'
image: https://developers.cloudflare.com/og-docs.png
---

[Skip to content](#main-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.

# Create a serverless websocket 'backend'

Last updated Aug 24, 2026|Copy as Markdown|[View as Markdown](https://e8aee267.previews.developers.cloudflare.com/learning-paths/durable-objects-course/series/serverless-websocket-backend-3/index.md)|[Agent setup](https://e8aee267.previews.developers.cloudflare.com/agent-setup/)

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:

* [Veet Github repository code ↗](https://github.com/megaconfidence/veet)
* [Cloudflare Durable Objects documentation](https://e8aee267.previews.developers.cloudflare.com/durable-objects/)
* [Cloudflare TURN service documentation](https://e8aee267.previews.developers.cloudflare.com/realtime/turn/)
* [CLI command for creating new Workers and Pages projects](https://e8aee267.previews.developers.cloudflare.com/pages/get-started/c3/)
* [Hopscotch.io for local WebSocket testing ↗](https://hoppscotch.io/)
* [Sign up for a Cloudflare account ↗](https://dash.cloudflare.com/sign-up)

### [Watch Episode 1: Introduction to the series](https://e8aee267.previews.developers.cloudflare.com/learning-paths/durable-objects-course/series/introduction-to-series-1/)

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?](https://e8aee267.previews.developers.cloudflare.com/learning-paths/durable-objects-course/series/what-are-durable-objects-2/)

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

### [Watch Episode 3: Create a serverless websocket 'backend'](https://e8aee267.previews.developers.cloudflare.com/learning-paths/durable-objects-course/series/serverless-websocket-backend-3/)

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

### [Watch Episode 4: Real-time messaging with WebSockets](https://e8aee267.previews.developers.cloudflare.com/learning-paths/durable-objects-course/series/real-time-messaging-with-websockets-4/)

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](https://e8aee267.previews.developers.cloudflare.com/learning-paths/durable-objects-course/series/build-the-app-frontend-5/)

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](https://e8aee267.previews.developers.cloudflare.com/learning-paths/durable-objects-course/series/make-answer-webrtc-calls-6/)

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

### [Watch Episode 7: Deploy your video call app](https://e8aee267.previews.developers.cloudflare.com/learning-paths/durable-objects-course/series/deploy-your-video-call-app-7/)

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

[![](https://e8aee267.previews.developers.cloudflare.com/_astro/logo.te5VL_aD.svg)Docs](https://e8aee267.previews.developers.cloudflare.com/)

```json
{"@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' · Cloudflare Learning Paths","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/og-docs.png","dateModified":"2026-08-24","publisher":{"@type":"Organization","name":"Cloudflare","url":"https://www.cloudflare.com/"},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}
```
