Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,9 @@ async fn main() {
}
});

// HTTP server (JSON-RPC over HTTP)
// HTTP server (JSON-RPC over HTTP + WebSocket on same port)
let http_app = Router::new()
.route("/", post(proxy))
.route("/", get(ws_proxy).post(proxy))
.route("/*path", post(proxy))
.route("/health", get(health_endpoint))
.with_state(state.clone())
Expand Down