MCPcopy Create free account
hub / github.com/coder/coder / watchWorkspace

Function watchWorkspace

site/src/api/api.ts:139–145  ·  view source on GitHub ↗
(
	workspaceId: string,
)

Source from the content-addressed store, hash-verified

137 * @returns {OneWayWebSocket} A OneWayWebSocket that emits Server-Sent Events.
138 */
139export const watchWorkspace = (
140 workspaceId: string,
141): OneWayWebSocket<TypesGen.ServerSentEvent> => {
142 return new OneWayWebSocket({
143 apiRoute: `/api/v2/workspaces/${workspaceId}/watch-ws`,
144 });
145};
146
147export const watchChat = (
148 chatId: string,

Callers 2

WorkspacePageFunction · 0.90
connectFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected