Documentation
    Preparing search index...

    Type Alias MessageHandler

    MessageHandler: (
        fromNode: NodeId,
        message: Uint8Array,
        transport: ITransport,
    ) => Promise<void>

    Processing hook for incoming messages from a message stream.

    The transport awaits this. Return a rejected promise to surface errors.

    Type Declaration

      • (fromNode: NodeId, message: Uint8Array, transport: ITransport): Promise<void>
      • Parameters

        Returns Promise<void>