Skip to content

Commit 54057fd

Browse files
committed
feat: add WebSocket event listener for distributed evaluation
- Add WebSocket client to validator-node (tokio-tungstenite) - Listen for challenge_event from platform-server - On new_submission event, trigger local evaluation via challenge container - Submit evaluation results back to central server via bridge - Auto-reconnect on WebSocket disconnect with retry loop - Maps challenge_id to local container URLs for evaluation routing
1 parent 39b0ccf commit 54057fd

File tree

3 files changed

+418
-5
lines changed

3 files changed

+418
-5
lines changed

Cargo.lock

Lines changed: 42 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bins/validator-node/Cargo.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,8 @@ hex = { workspace = true }
4545
parking_lot = { workspace = true }
4646
sp-core = { workspace = true }
4747
uuid = { version = "1.0", features = ["v5"] }
48+
49+
# WebSocket for platform-server events
50+
tokio-tungstenite = { version = "0.21", features = ["native-tls"] }
51+
futures-util = "0.3"
52+
url = "2.5"

0 commit comments

Comments
 (0)