Skip to main content
Version: 11.x

Type Alias: WsTransportOptions

WsTransportOptions = object

Defined in: src/channel/transport/ws.ts:50

What WsTransport needs to open its socket.

Properties

nodeUrl

nodeUrl: string

Defined in: src/channel/transport/ws.ts:52

Example

'wss://starknet-sepolia.public.blastapi.io/rpc/v0_10'

websocket?

optional websocket?: WebSocketModule

Defined in: src/channel/transport/ws.ts:54

Custom WebSocket implementation. Falls back to config.get('websocket'), then the global.


requestTimeout?

optional requestTimeout?: number

Defined in: src/channel/transport/ws.ts:56

Milliseconds before an unanswered request rejects. Defaults to 60000.