BaseWebSocketClient constructor

BaseWebSocketClient(
  1. BaseClient client,
  2. dynamic baseUrl, {
  3. bool reconnectOnClose = true,
  4. Duration? reconnectInterval,
})

Implementation

BaseWebSocketClient(super.client, super.baseUrl,
    {this.reconnectOnClose = true, Duration? reconnectInterval}) {
  _reconnectInterval = reconnectInterval ?? Duration(seconds: 10);
}