Minimal surface of ChannelSession the adapter depends on. Declared structurally so tests can inject a fake without real signing keys.

interface ChannelSessionLike {
    channelId: string;
    receiveIncoming(msg: ChannelMessage): Promise<void>;
    sendOutgoing(opts: {
        body: unknown;
        repliesTo?: number;
        sentAt?: number;
        type: ChannelMessageType;
    }): Promise<ChannelMessage>;
}

Properties

channelId: string

Methods