close method
Closed the connection.
Implementation
@override
void close() {
connecting = false;
messageHandler = null;
errorHandler = null;
doneHandler = null;
if (socket != null) {
socket.close();
socket == null;
}
}
Closed the connection.
@override
void close() {
connecting = false;
messageHandler = null;
errorHandler = null;
doneHandler = null;
if (socket != null) {
socket.close();
socket == null;
}
}