Optional
options: { mode?: "single" | "pool"; poolSize?: number; stream?: string | string[] } = {}Optional connection options.
Optional
mode?: "single" | "pool"The connection mode, either 'single' or 'pool'. Overwrite the mode
option in the configuration.
Optional
poolSize?: numberThe number of connections to use in pool mode. Overwrite the poolSize
option in the configuration.
Optional
stream?: string | string[]The stream(s) to connect to.
WebsocketStreamsConnection
instance.
Connects to the Binance WebSocket streams and returns a
WebsocketStreamsConnection
instance.