---
title: websocket
summary: Create a Response that instructs Fastly to pass the original request through as a WebSocket connection to the specified backend.
url: https://www.fastly.com/documentation/reference/compute/sdks/javascript/js-compute/websocket/
---

**Kind:** Module  
**Package:** @fastly/js-compute 4.0.1  
**Path:** `websocket`

Create a [Response](https://www.fastly.com/documentation/reference/compute/sdks/javascript/js-compute/globals/interface.Response/) that instructs Fastly to pass the original request through as a
WebSocket connection to the specified backend.

## Functions

| Name | Summary |
| --- | --- |
| [createWebsocketHandoff](https://www.fastly.com/documentation/reference/compute/sdks/javascript/js-compute/websocket/fn.createWebsocketHandoff/) | Create a [Response](https://www.fastly.com/documentation/reference/compute/sdks/javascript/js-compute/globals/interface.Response/) that instructs Fastly to pass the original request through as a WebSocket connection to the specified backend. |
