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

x/denocg/client/mod.ts>Client

[Experimental / PoC] Create broadcast graphics using Deno and a browser (a NodeCG alternative)
Latest
interface Client
import { type Client } from "https://deno.land/x/denocg@v0.0.8/client/mod.ts";

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>>
close(): void
isClosed(): boolean