Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/s3si/src/jsonrpc/mod.ts>JSONRPCClient

Export your battles from SplatNet to https://stat.ink
Go to Latest
class JSONRPCClient
import { JSONRPCClient } from "https://deno.land/x/s3si@gui-v0.4.16/src/jsonrpc/mod.ts";

Constructors

new
JSONRPCClient(unnamed 0: { transport: Transport; })

Properties

protected
fatal: unknown
protected
nextId: number
protected
requestMap: Map<ID, (result: RPCResult<any, ResponseError>) => void>
protected
task: Promise<void>
protected
transport: Transport

Methods

protected
handleResponse(resp: Response<unknown, ResponseError>)
protected
run()
protected
setFatal(e: unknown)
call<K extends keyof S & string, P extends Parameters<S[K]>, R extends ReturnType<S[K]>>(method: K, ...params: P): Promise<R>
makeRequest<K extends keyof S & string, P extends Parameters<S[K]>>(method: K, params: P): Request<K, P>