writeResponse
Function: writeResponse()
writeResponse(
ctx,response):Promise<void>
Defined in: packages/mcp/src/bridge.ts:34
Write a web-standard Response into a Webda context, streaming the body chunk by chunk (SSE) and stopping when the client disconnects. The returned promise settles when the body is fully written.
Parameters
ctx
WebContext
the request context
response
Response
the SDK transport response
Returns
Promise<void>