Type Alias: WebSocketProviderOptions
WebSocketProviderOptions =
RpcProviderOptions&Omit<Partial<ReconnectingWsTransportOptions>,"nodeUrl"> &Omit<SubscriptionChannelOptions,"transport"> &object
Defined in: src/provider/ws.ts:19
Everything WebSocketProvider accepts: the provider options, the socket options of ReconnectingWsTransport, and the subscription-channel options.
Type Declaration
transport?
optionaltransport?:WsTransport
An already-built transport to borrow. Mutually exclusive with nodeUrl, and the form to
use in React: the socket lives at module scope while components own only subscriptions.