Do WebSockets work on client-side javascript on glitch?

I have a simple node app set up where my HTML references a script file with directions to connect to a websocket server. However, when I run my project it doesn’t connect to websockets. Why doesn’t the socket connection work client-side? Should I rewrite this to connect to websockets with nodejs?

Yes, I’ve seen projects that use websockets. Just make sure your websocket port is the same as your web server port(might not be the best tip)

If you need any examples my coworker just put together this collection:

Cool, thanks! However, I’m using WebSocket on the client side, like
var socket = new WebSocket("wss://");
But my socket isn’t connecting.