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