interface · Browser and Node
RelayLike
Anything that posts to the internet relay: a RelayTransport signed in as the gateway.
@toip-tools/mesh-transportView sourceimport { type RelayLike } from "@toip-tools/mesh-transport";
Declaration
interface RelayLike {
post(from: string, to: string, wire: Uint8Array): Promise<Delivery>;
readonly url?: string;
}
Properties
urloptional · readonlystring | undefined
Methods
post
post(from: string, to: string, wire: Uint8Array): Promise<Delivery>;
Parameters
fromrequiredstringtorequiredstringwirerequiredUint8Array<ArrayBufferLike>
Returns
Promise<Delivery>