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