mwg API
    Preparing search index...

    Interface LockstepClientOptions

    interface LockstepClientOptions {
        create?: (url: string) => WebSocketLike;
        url: string;
        validateInput?: (payload: unknown) => string | boolean;
    }
    Index
    create?: (url: string) => WebSocketLike

    defaults to the global WebSocket; inject a fake in tests, or ws's own client in Node

    url: string
    validateInput?: (payload: unknown) => string | boolean

    Optional client-side command contract. Returning a string rejects with that reason.