MCPcopy Create free account
hub / github.com/ScaleML/AgentSPEX / handle_disconnect

Function handle_disconnect

scripts/dashboard.py:2864–2870  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2862
2863@socketio.on("disconnect")
2864def handle_disconnect():
2865 connected_clients.discard(request.sid)
2866 if log_manager:
2867 log_manager.unsubscribe(request.sid)
2868 # If no clients connected and auto-close is enabled, shutdown
2869 if not connected_clients and args.auto_close:
2870 trigger_shutdown("No clients connected, shutting down...")
2871
2872
2873@socketio.on("request_full_state")

Callers

nothing calls this directly

Calls 2

trigger_shutdownFunction · 0.85
unsubscribeMethod · 0.80

Tested by

no test coverage detected