An example of how to create a server that is able to service both http requests and websocket connections on the same port.
This example uses:
- tokio, for the runtime
- hyper, for http
- tungstenite, for websocket
- tokio-tungstenite for tokio bindings
An example of how to create a server that is able to service both http requests and websocket connections on the same port.
This example uses: