(id: string, data: any)
| 165 | return response.status === 204 ? { success: true } : response.json(); |
| 166 | }, |
| 167 | async join(id: string, data: any) { |
| 168 | const response = await fetch(`${baseUrl}/v1/rooms/${id}/join`, { |
| 169 | method: "POST", |
| 170 | headers: buildHeaders(), |
| 171 | body: JSON.stringify(data), |
| 172 | }); |
| 173 | return response.json(); |
| 174 | }, |
| 175 | async leave(id: string) { |
| 176 | const response = await fetch(`${baseUrl}/v1/rooms/${id}/leave`, { |
| 177 | method: "POST", |
nothing calls this directly
no test coverage detected