---
title: "Port-forward to a worker using WebSocket protocol"
method: GET
path: "/workers/{name}/port-forward"
tags: ["workers"]
---

# Port-forward to a worker using WebSocket protocol

`GET /workers/{name}/port-forward`

## Query parameters

- `port` integer, required
- `wait` integer

## Headers

- `Connection` string, required
- `Upgrade` string, required

## Other responses

- `400` — Invalid port specified
- `404` — Worker resource with the given name doesn't exist
- `503` — Failed to establish connection with the requested worker

## Changes

- **2025-02-06** `fd89b0afdcc1` — 1 info
  - added the new optional `query` request parameter `wait`
- **2023-10-09** `e0632c7e52ea` — 1 info
  - endpoint added
- **2023-01-26** `4b9547159dde` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/openai/apis/orchard/changes/workers/:name/port-forward/get.md)

---

[API](https://skmtc.dev/openai/apis/orchard.md) · [All operations](https://skmtc.dev/openai/apis/orchard/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/openai/orchard/revisions/d599e69bf6be/schema)
