Skip to content

Commit 17c44fb

Browse files
committed
feat: enable WebSocket on main HTTP port (single-port deployment support)
1 parent 6b233cc commit 17c44fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,9 +186,9 @@ async fn main() {
186186
}
187187
});
188188

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

0 commit comments

Comments
 (0)