interface MockBridgeOptions No documentation.
Properties
latency
readonly latency?: MockLatency; Delays every request, reply and push. Replies and pushes stay in the order the mock sent them, as the transports guarantee. Real timers measure it with immediate scheduling, and the virtual clock (advance()) with manual.
reorderRequests
readonly reorderRequests?: boolean; Processes requests out of order: each request is admitted when its own delay ends, and requests due together are admitted newest first, as a producer that does not keep a connection's admission order. Setter edits that arrive after a newer edit of their member then answer superseded, as a producer does. Requests that change state (set, write, command, start) run one at a time in the order they are admitted, as a window's turns: a command handler that awaits holds the next one until it returns.
navigation
readonly navigation?: MockNavigation; navigation-path/1: the window's Back and route path. path is the window's route path, which the hello reply of a connection that uses the feature carries; without it the window has no path region. handle answers navigation requests; without it they are unavailable. Use MockBridge for a change the application makes.
uploads
readonly uploads?: false | {
readonly maximumBytes?: number;
}; blobs/1: whether the mock takes uploads, and its per-upload limit in bytes. By default it takes uploads of up to 256 MiB; false grants none, so upload() rejects with unavailable.