import { type Server } from "https://deno.land/x/denocg@v0.0.8/server/mod.ts";
Type Parameters
TDef extends TypeDefinition
Methods
getReplicant<TKey extends ReplicantName<TDef>>(name: TKey): 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
registerRequestHandler<TKey extends RequestName<TDef>>(): void
unregisterRequestHandler<TKey extends RequestName<TDef>>(name: TKey, handler: RequestHandler<TDef, TKey>): void