Skip to main content

Interface: RPCServiceCtor<Context, M>

@divine/web-service.RPCServiceCtor

The static side of an RPC service.

Specifies how the service is constructed.

Type parameters

NameTypeDescription
ContextContextThe type of the context argument.
Mextends RPCMethods<M>The interface that defines all RPC method request and response types (as tuples).

Constructors

constructor

new RPCServiceCtor(context, args)

Constructs a new RPC service instance.

Parameters

NameTypeDescription
contextContextThe WebService context.
argsWebArgumentsThe request arguments.

Defined in

web-service/src/rpc.ts:86