Interface RPCCallOptions
interface RPCCallOptions {
addfunctionname?: boolean;
baseUrl?: string;
credentials?: RequestCredentials;
debug?: boolean;
headers?: Record<string, string>;
keepalive?: boolean;
retry429?: boolean;
signal?: AbortSignal;
silent?: boolean;
timeout?: number;
urlappend?: string;
wrapresult?: boolean;
}
addfunctionname?: boolean;
baseUrl?: string;
credentials?: RequestCredentials;
debug?: boolean;
headers?: Record<string, string>;
keepalive?: boolean;
retry429?: boolean;
signal?: AbortSignal;
silent?: boolean;
timeout?: number;
urlappend?: string;
wrapresult?: boolean;
}
Properties
Optional
addfunctionname
addfunctionname?: boolean
Optional
base Url
baseUrl?: string
Base URL for service paths
Optional
credentials
credentials?: RequestCredentials
Overide fetch credentials option (defaults to same-origin)
Optional
debug
debug?: boolean
Debug (Follows 'rpc' debugflag if not explicity specified)
Optional
headers
headers?: Record<string, string>
Headers to submit (Eg Authorization)
Optional
keepalive
keepalive?: boolean
Optional
retry429
retry429?: boolean
Retry on 429
Optional
signal
signal?: AbortSignal
Abort signal to cancel the RPC
Optional
silent
silent?: boolean
Silent - do not log errors
Optional
timeout
timeout?: number
Call timeout
Optional
urlappend
urlappend?: string
Custom URL marker
Optional
wrapresult
wrapresult?: boolean
Wrap result with response info
Append function name to URLs. Purely for better logging/visibility as the WebHare JSONRPC server will ignore it