WebSockets constructor

WebSockets(
  1. String baseUrl, {
  2. bool reconnectOnClose = true,
  3. Duration? reconnectInterval,
})

Implementation

WebSockets(
  String baseUrl, {
  bool reconnectOnClose = true,
  Duration? reconnectInterval,
}) : super(
       http.BrowserClient(),
       baseUrl,
       reconnectOnClose: reconnectOnClose,
       reconnectInterval: reconnectInterval,
     );