stop method
Stop the server and disconnect all clients.
Implementation
Future<void> stop() async {
for (final bridge in _connections.values) {
await bridge.dispose();
}
_connections.clear();
await _httpServer?.close();
_httpServer = null;
await _connectionController.close();
}