Minimal surface of L2PSMessagingPeer the adapter depends on. Declared structurally for the same reason as ChannelSessionLike.

interface L2PSMessagingPeerLike {
    onMessage(handler: ((payload: IncomingMessagePayload) => void)): void;
    send(to: string, encrypted: l2ps.channel.SerializedEncryptedMessage, messageHash: string): Promise<unknown>;
}

Methods

Methods