mirror of
https://github.com/siteboon/claudecodeui.git
synced 2026-05-02 02:38:38 +00:00
17 lines
522 B
TypeScript
17 lines
522 B
TypeScript
import type { RealtimeClientConnection } from '@/shared/types.js';
|
|
|
|
/**
|
|
* Numeric readyState for an open WebSocket connection.
|
|
*
|
|
* We keep this in module state so services that broadcast updates do not need
|
|
* to import `ws` directly just to compare open/closed state.
|
|
*/
|
|
export const WS_OPEN_STATE = 1;
|
|
|
|
/**
|
|
* Shared registry of active chat WebSocket connections.
|
|
*
|
|
* Project/session services publish realtime updates by iterating this set.
|
|
*/
|
|
export const connectedClients = new Set<RealtimeClientConnection>();
|