MCPcopy Create free account
hub / github.com/tiann/hapi / cancelMessage

Method cancelMessage

web/src/api/client.ts:402–408  ·  view source on GitHub ↗
(sessionId: string, messageId: string)

Source from the content-addressed store, hash-verified

400 }
401
402 async cancelMessage(sessionId: string, messageId: string): Promise<CancelMessageResponse> {
403 const response = await this.request(
404 `/api/sessions/${encodeURIComponent(sessionId)}/messages/${encodeURIComponent(messageId)}`,
405 { method: 'DELETE' }
406 )
407 return response as CancelMessageResponse
408 }
409
410 async abortSession(sessionId: string): Promise<void> {
411 await this.request(`/api/sessions/${encodeURIComponent(sessionId)}/abort`, {

Callers 1

useCancelQueuedMessageFunction · 0.80

Calls 1

requestMethod · 0.95

Tested by

no test coverage detected