disconnect method
Disconnect but don't close user-facing streams
Implementation
Future<void> disconnect() async {
if (isDisconnected) {
return log(
'Tried to disconnect from the websocket, '
'but it was already disconnected.',
name: 'ServerWebsocket.disconnect()',
);
}
return _disconnect();
}