interface · Node only
Relay
@toip-tools/relayView sourceimport { type Relay } from "@toip-tools/relay";
Declaration
interface Relay {
/** The URL clients connect to and sign in their authentication. */
url: string;
port: number;
/** How many messages wait for `did`. */
queued(did: string): number;
close(): Promise<void>;
}
Properties
urlrequiredstringThe URL clients connect to and sign in their authentication.
portrequirednumber
Methods
queued
How many messages wait for did.
queued(did: string): number;
Parameters
didrequiredstring
Returns
numberclose
close(): Promise<void>;
No parameters.
Returns
Promise<void>