toip.tools

interface · Node only

Relay

@toip-tools/relayView source
TypeScriptImport
import { type Relay } from "@toip-tools/relay";

Declaration

TypeScriptinterface
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

urlrequired
string

The URL clients connect to and sign in their authentication.

portrequired
number

Methods

queued

How many messages wait for did.

TypeScriptSignature
queued(did: string): number;

Parameters

didrequired
string

Returns

number

close

TypeScriptSignature
close(): Promise<void>;

No parameters.

Returns

Promise<void>