Skip to content

js-bao-wss-client


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? ​

optional headers?: Record<string, string>


rawBody? ​

optional rawBody?: boolean


timeoutMs? ​

optional timeoutMs?: 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).

Documentation validated against js-bao-wss-client 3.4.0 · js-bao 0.11.0 · primitive-admin 1.0.62 · primitive-app 3.1.0 — 2026-09-30