Skip to content

Commit 007703a

Browse files
committed
fix: update client-facing API endpoints
1 parent 0b4e079 commit 007703a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

site/src/api/api.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ const getMissingParameters = (
108108
export const watchAgentMetadata = (agentId: string): OneWayWebSocket => {
109109
const protocol = location.protocol === "https:" ? "wss:" : "ws:";
110110
return new OneWayWebSocket(
111-
`${protocol}//${location.host}/api/v2/workspaceagents/${agentId}/watch-metadata`,
111+
`${protocol}//${location.host}/api/v2/workspaceagents/${agentId}/watch-metadata-ws`,
112112
);
113113
};
114114

@@ -119,7 +119,7 @@ export const watchAgentMetadata = (agentId: string): OneWayWebSocket => {
119119
export const watchWorkspace = (workspaceId: string): OneWayWebSocket => {
120120
const protocol = location.protocol === "https:" ? "wss:" : "ws:";
121121
return new OneWayWebSocket(
122-
`${protocol}//${location.host}/api/v2/workspaces/${workspaceId}/watch`,
122+
`${protocol}//${location.host}/api/v2/workspaces/${workspaceId}/watch-ws`,
123123
);
124124
};
125125

0 commit comments

Comments
 (0)