How can I add a websocket server to Glitch?

I need a websocket module to run my project properly (preferably the “ws” npm module) and I’d like to know how to get stuff like that working on Glitch. Thank you!


PS. I know this has been asked before but it didn’t provide me useful enough info, reading the answer given. I’d like my case to be settled straight. Again, thanks.

Hi, i setup a websocket server for both old and new browsers in my project masto-count.

You can checkout to see websockets in action if you like it (these even work in ie5)
Note that websockets for old devices are a bit different and require browserchannel.

or else, for the ws package:


Thank you for the material. I’ll see if I can comprehend this somehow.

1 Like