RTCForge API Reference v1.1.1
    Preparing search index...

    Interface GossipTransport

    Pluggable message transport a GossipMembership uses to exchange GossipMessages.

    Abstracts the wire so gossip can run over anything — UDP, an in-process bus (InMemoryGossipTransport), or a custom channel. Implementations must deliver received messages to the handler registered via onReceive.

    interface GossipTransport {
        address: string;
        close?(): void;
        onReceive(handler: (msg: GossipMessage) => void): void;
        send(toAddress: string, msg: GossipMessage): void;
    }

    Implemented by

    Index

    Properties

    Methods

    Properties

    address: string

    This transport's own address, used as GossipMessage.from.

    Methods