reconnect method
Reopen the connection, and rebind with the last known bind credentiuals
Implementation
Future<void> reconnect() async {
loggerConnection.fine('reconnecting');
// force close of socket..
await close();
await open();
if (_lastBindRequest != null) {
await _doBind(_lastBindRequest!);
}
}