initWebSocketConnection method

dynamic initWebSocketConnection()

Implementation

initWebSocketConnection() async {
  if (wsClosed) return;

  print("conecting...");
  channel = await connectWs();
  print("socket connection initialized");
  channel?.done.then((dynamic _) => _onDisconnected());
  broadcastNotifications();
}