broadcastNotifications method

dynamic broadcastNotifications()

Implementation

broadcastNotifications() {
  channel?.listen((streamData) {
    streamController.add(streamData);
  }, onDone: () {
    print("conecting aborted");
    initWebSocketConnection();
  }, onError: (e) {
    print('Server error: $e');
    initWebSocketConnection();
  });
}