dispose method
Implementation
void dispose([bool cancelTimer = true]) {
log('dispose socket');
if (cancelTimer) _timer?.cancel();
_channel?.sink.close(status.goingAway);
_subscription?.cancel();
isConnect = false;
_channel = null;
}
void dispose([bool cancelTimer = true]) {
log('dispose socket');
if (cancelTimer) _timer?.cancel();
_channel?.sink.close(status.goingAway);
_subscription?.cancel();
isConnect = false;
_channel = null;
}