onDisconnected method

void onDisconnected()

Handles the disconnection from the WebSocket server

Implementation

void onDisconnected() {
  _logger.info('Disconnected');
  websocketCancelled = true;
}