js-bao-wss-client / RequestOptions
Interface: RequestOptions
Per-request options for HTTP calls made through the client. Allows extra request headers, sending the body as-is instead of JSON-encoding it, and an optional overall timeout.
Properties
headers?
optionalheaders?:Record<string,string>
rawBody?
optionalrawBody?:boolean
timeoutMs?
optionaltimeoutMs?:number
Abort the request if the server has not responded within this many milliseconds. Implemented with an AbortController; a timed-out request rejects with a JsBaoNetworkError (the same retryable class as any other transport failure) rather than hanging indefinitely. Omit or set to a non-positive value to leave the request without a timeout (the default — this is opt-in, applied only by the callers that ask for it, currently the workflow apply-lifecycle calls).