close method
void
close()
Implementation
void close() {
_closed = true;
if (_subscription != null) {
_subscription!.cancel();
}
if (_socket != null) {
_socket!.sink.close();
}
_statusCallback(Status.SOCKET_CLOSED, null);
}