Websockets in Github Codespaces
I've tried using Github Codespaces to run example code. Codespaces lets me install pynecone and run it. Port 3000/8000 are opened and a link is provided to the view the webpage. Keep in mind, the hostname is a custom hostname generated by Github, it obviously can't use localhost or 192.168.1.1.
However, the site is non-responsive. To make sure my code wasn't the issue, I've cloned the todo project. The website renders. If I add an item it is never added to the list. Marking off an item also has no effect.
Sure enough if I look at the Developer Tools, websockets is pointing to 'localhost' still. WebSocket connection to 'ws://localhost:8000/event/?EIO=4&transport=websocket' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED
Is there a config so websockets knows to use the host given by GitHub and not localhost?