WebSocketProtocol constructor

WebSocketProtocol(
  1. Uri uri, {
  2. bool autoReconnect = true,
  3. Duration reconnectionDelay = const Duration(seconds: 1),
  4. int reconnectionAttempts = 10,
  5. Duration pingInterval = const Duration(seconds: 2),
})

Implementation

WebSocketProtocol(
  Uri uri, {
  bool autoReconnect = true,
  Duration reconnectionDelay = const Duration(seconds: 1),
  int reconnectionAttempts = 10,
  Duration pingInterval = const Duration(seconds: 2),
}) : super(
        uri,
        autoReconnect: autoReconnect,
        reconnectionDelay: reconnectionDelay,
        reconnectionAttempts: reconnectionAttempts,
        pingInterval: pingInterval,
      );