Expand description
interface MockServerOptions {
defaultChunkSize?: number;
defaultLatency?: number;
host?: string;
logLevel?: "error" | "none" | "warning" | "info" | "debug" | "all";
port?: number;
}Properties§
§§§§§
readonly default Chunk Size?: numberDefault characters per SSE text chunk. Individual rules can override this.
readonly default Latency?: numberDefault ms delay between SSE chunks. Individual rules can override this.
readonly host?: stringHost to bind to. Set to "0.0.0.0" to listen on all interfaces.
readonly log Level?: "error" | "none" | "warning" | "info" | "debug" | "all"Log verbosity.
readonly port?: numberPort to listen on. Pass 0 for a random port (useful in tests).
Options for constructing a
MockServeror callingcreateMock().