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
Optionaladdfunctionname
addfunctionname?: boolean
Optionalbase Url
baseUrl?: string
Base URL for service paths
Optionalcredentials
credentials?: RequestCredentials
Overide fetch credentials option (defaults to same-origin)
Optionaldebug
debug?: boolean
Debug (Follows 'rpc' debugflag if not explicity specified)
Optionalheaders
headers?: Record<string, string>
Headers to submit (Eg Authorization)
Optionalkeepalive
keepalive?: boolean
Optionalretry429
retry429?: boolean
Retry on 429
Optionalsignal
signal?: AbortSignal
Abort signal to cancel the RPC
Optionalsilent
silent?: boolean
Silent - do not log errors
Optionaltimeout
timeout?: number
Call timeout
Optionalurlappend
urlappend?: string
Custom URL marker
Optionalwrapresult
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