Module ws_client

Module ws_client 

Source
Expand description

WebSocket client for MCP → Dashboard communication

Handles registration and keep-alive for MCP server instances.

§Testing Strategy

This module requires a running Dashboard server for testing. Tests are located in tests/ws_client_integration_test.rs and marked with #[ignore].

To run integration tests:

# Start Dashboard first
ie dashboard start

# Run integration tests
cargo test --test ws_client_integration_test -- --ignored

Structs§

ProjectInfo
Project information sent to Dashboard

Functions§

connect_to_dashboard
Start WebSocket client with automatic reconnection This function runs indefinitely, reconnecting on disconnection