---
title: "WebSocket connection for real-time updates"
method: GET
path: "/ws"
tags: ["system"]
---

# WebSocket connection for real-time updates

`GET /ws`

Upgrades to a WebSocket connection that streams execution progress,
node status, and output messages. The server sends an initial `status`
message with the session ID (SID) on connect.

## Message types (server → client)
The server sends JSON messages with a `type` field. See the
`x-websocket-messages` list below for the schema of each message type.

## Query parameters

- `clientId` string

## Other responses

- `101` — WebSocket upgrade successful
- `401` — Unauthorized

## Changes

- **2026-05-22** `09a5075587c8` — 1 info
  - added the non-success response with the status `401`
- **2026-04-24** `a66055fa384e` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/comfy-org/apis/comfyui-api/changes/ws/get.md)

---

[API](https://skmtc.dev/comfy-org/apis/comfyui-api.md) · [All operations](https://skmtc.dev/comfy-org/apis/comfyui-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/comfy-org/comfyui-api/revisions/c4db9e1283df/schema)
