import { type Client } from "https://deno.land/x/denocg@v0.0.8/client/mod.ts";
Type Parameters
TDef extends TypeDefinition
Methods
getReplicant<TKey extends ReplicantName<TDef>>(name: TKey): Promise<Replicant<ReplicantType<TDef, TKey>>>
broadcastMessage<TKey extends MessageName<TDef>>(...unnamed 0: MessageParams<TDef, TKey> extends undefined ? [TKey, undefined] : [TKey, MessageParams<TDef, TKey>]): void
addMessageListener<TKey extends MessageName<TDef>>(name: TKey, listener: MessageListener<TDef, TKey>): void
removeMessageListener<TKey extends MessageName<TDef>>(name: TKey, listener: MessageListener<TDef, TKey>): void
requestToServer<TKey extends RequestName<TDef>>(...unnamed 0: RequestParams<TDef, TKey> extends undefined ? [TKey, undefined] : [TKey, RequestParams<TDef, TKey>]): Promise<RequestResult<TDef, TKey>>