MCPcopy Index your code
hub / github.com/coder/coder / watchChatDesktop

Function watchChatDesktop

site/src/api/api.ts:182–189  ·  view source on GitHub ↗
(chatId: string)

Source from the content-addressed store, hash-verified

180};
181
182export const watchChatDesktop = (chatId: string): WebSocket => {
183 const socket = createWebSocket(
184 `/api/experimental/chats/${chatId}/stream/desktop`,
185 );
186 // RFB is a binary protocol — noVNC expects arraybuffer, not blob.
187 socket.binaryType = "arraybuffer";
188 return socket;
189};
190
191export const watchAgentContainers = (
192 agentId: string,

Callers 1

doConnectFunction · 0.90

Calls 1

createWebSocketFunction · 0.85

Tested by

no test coverage detected