disconnect method
Closes the connection to the AMI server.
Implementation
@override
void disconnect() {
_listener?.cancel();
_socket?.sink.close(goingAway);
_socket = null;
_controller?.add(false);
}
Closes the connection to the AMI server.
@override
void disconnect() {
_listener?.cancel();
_socket?.sink.close(goingAway);
_socket = null;
_controller?.add(false);
}