bothy-sdk
    Preparing search index...

    Interface AdapterOptions

    The test seams and replaceable parts of an Adapter.

    interface AdapterOptions {
        clock?: Clock;
        fetch?: (request: Request) => Promise<Response>;
        inbox?: InboxStore;
        logger?: Logger;
        outboxStore?: OutboxStore;
        source?: EventSource;
        WebSocket?: GatewaySocketConstructor;
    }
    Index

    Properties

    clock?: Clock

    The time source (tests pass a FakeClock); default systemClock.

    fetch?: (request: Request) => Promise<Response>

    The fetch of the REST client (tests).

    inbox?: InboxStore

    The inbox; default FileInboxStore in stateDir/inbox (memory without stateDir).

    logger?: Logger

    The logger of the client and the loop.

    outboxStore?: OutboxStore

    The outbox store; default FileOutboxStore in stateDir/outbox.json.

    source?: EventSource

    An event source; default from transport.

    The WebSocket constructor of the gateway (default the global WebSocket).