Skip to content

Commit ea04924

Browse files
committed
feat: enable WebSocket on main HTTP port (single-port deployment support)
1 parent 1332b8b commit ea04924

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
@@ -190,9 +190,9 @@ async fn main() {
190190
}
191191
});
192192

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

0 commit comments

Comments
 (0)