housleyjk / ws-rs

Lightweight, event-driven WebSockets for Rust.
MIT License
1.47k stars 222 forks source link

Restful server + websocket on same port #312

Open SupertigerDev opened 4 years ago

SupertigerDev commented 4 years ago

I'm new to rust, coming from nodejs. I want to know how I can run a Restful server and websocket server in the same port. I know this can be done in nodejs, but not sure about rust.

Thanks.