ByBitWebSocket constructor

ByBitWebSocket({
  1. String url = 'wss://stream.bybit.com/realtime',
  2. String key = '',
  3. String password = '',
  4. Duration? timeout,
  5. int pingPeriod = 30,
})

Connect to the server with a WebSocket. A ping shall be send every pingLooTimer seconds in order to keep the connection alive.

Implementation

ByBitWebSocket(
    {this.url = 'wss://stream.bybit.com/realtime',
    this.key = '',
    this.password = '',
    this.timeout,
    this.pingPeriod = 30}) {
  log = LoggerSingleton();
}