Represents the configuration options for performing a Kos WebSocket fetch operation.

interface KosFetchOptions {
    method: "GET" | "PUT" | "POST" | "DELETE";
    body?: string;
    ordered?: boolean;
    destinationAddress?: string;
    tracker?: string;
}

Properties

method: "GET" | "PUT" | "POST" | "DELETE"

The HTTP method for the request (e.g., 'GET', 'POST', 'PUT', 'DELETE', etc.).

body?: string

The request body as a string.

ordered?: boolean

Indicates whether the request should be ordered.

destinationAddress?: string

The destination address for the WebSocket request.

tracker?: string

The tracker associated with the request.