Problem Description
At the moment two ports have to be opened.
3030 for the webserver and 8080 for the websocket connection.
Proposed Solution
Use only one port to handle both browser get requests and websocket.
For this we can utilize https://developer.mozilla.org/en-US/docs/Web/HTTP/Protocol_upgrade_mechanism
Not sure yet if warp should be replaced by some tokio_tungstenite method or vice versa.
Both presumably support simple requests and websockets.
Suggestion is to only use port 3030
Problem Description At the moment two ports have to be opened. 3030 for the webserver and 8080 for the websocket connection.
Proposed Solution Use only one port to handle both browser get requests and websocket. For this we can utilize https://developer.mozilla.org/en-US/docs/Web/HTTP/Protocol_upgrade_mechanism Not sure yet if warp should be replaced by some tokio_tungstenite method or vice versa. Both presumably support simple requests and websockets. Suggestion is to only use port 3030