interface WsProviderOptions {
    endpoint: string;
    retryDelayMs?: number;
    timeout?: number;
}

Properties

endpoint: string

The websocket endpoint to connect to A valid endpoint should start with wss://, ws://

retryDelayMs?: number

Delay in milliseconds before retrying to connect If the value is <= 0, retry will be disabled

2500
timeout?: number

Timeout in milliseconds for the request, an error will be thrown if the request takes longer than this value

30000