Way to make websocket server not hang on unsecure websocket requests

Hey! So I am trying to connect a WebSocket from a client that does not support Secure WebSocket connections (WSS), but when I try to connect using the not secure way (WS) the server/glitch hangs forever and/or fails to connect. I’ve tried many code examples, and if I host it on Heroku, it works. This is how I know it is a glitch issue. Also, there is one project that works not secure, but I cannot edit it, and when I remix it and change nothing, it still fails. Is there any way to fix this?

I know it isn’t the client because I even tried from https://www.websocket.org/echo.html and it hangs forever/doesn’t connect.