Interface PeerAwareMessageOptions<Peer>

Peer-aware messaging context options.

interface PeerAwareMessageOptions {
    from?: Peer;
    signal?: AbortSignal;
    topic?: string;
}

Type Parameters

  • Peer = unknown

Hierarchy

Properties

Properties

from?: Peer

The message's from peer ID.

signal?: AbortSignal

An optional AbortSignal that can be used to abort an async task.

topic?: string

The message's topic.

Generated using TypeDoc