---
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

## Changes

- **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/a66055fa384e/schema)
