I am not sure, but it could have been caused by web security(blocking the connection to the server from a user-hosted proxy). I hosted it myself on a local machine and the websockets do connect, except only in codespaces. I hope there will be solutions to this issue (maybe masking the server as a standard HTTPS/IP connection?)