clearServerAddress method

void clearServerAddress()

Clear server action.

Implementation

void clearServerAddress() {
  _controller.add(null);
  messages = [];
  _channel?.sink.close();
  _channel = null;
}