MCPcopy Create free account
hub / github.com/astercloud/aster / join

Function join

ui/src/composables/useAsterClient.ts:167–174  ·  view source on GitHub ↗
(id: string, data: any)

Source from the content-addressed store, hash-verified

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",

Callers

nothing calls this directly

Calls 1

buildHeadersFunction · 0.85

Tested by

no test coverage detected