(chatId: string)
| 180 | }; |
| 181 | |
| 182 | export 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 | |
| 191 | export const watchAgentContainers = ( |
| 192 | agentId: string, |
no test coverage detected