Skip to content

ClientOptions

Defined in: types.ts:57

optional batch?: boolean | BatchOptions

Defined in: types.ts:71

Coalesce service calls made within the same window into one POST /batch request (the server’s batch endpoint must be enabled — it is by default). Calls carrying per-request headers bypass coalescing.

false

optional headers?: Record<string, string>

Defined in: types.ts:65

Default headers appended to every REST request.


optional socket?: SocketOptions

Defined in: types.ts:63

Socket.io connection options. Omit to disable real-time features.


optional storage?: TokenStorage

Defined in: types.ts:61

Token storage. Default: localStorage when available, otherwise in-memory.


url: string

Defined in: types.ts:59

Base URL of the Mantle server, e.g. "http://localhost:3030". Required.