We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1332b8b commit ea04924Copy full SHA for ea04924
src/main.rs
@@ -190,9 +190,9 @@ async fn main() {
190
}
191
});
192
193
- // HTTP server (JSON-RPC over HTTP)
+ // HTTP server (JSON-RPC over HTTP + WebSocket on same port)
194
let http_app = Router::new()
195
- .route("/", post(proxy))
+ .route("/", get(ws_proxy).post(proxy))
196
.route("/*path", post(proxy))
197
.route("/health", get(health_endpoint))
198
.with_state(state.clone())
0 commit comments