closeConnection method
Closes the connection. Deprecated: use disconnect() instead.
Implementation
@Deprecated('Use disconnect() instead.')
Future<dynamic> closeConnection() {
logApp('Closing socket for host ${serverInfo.host}');
return disconnect();
}