ring 2022-01-18

Hi guys. Is it possible to add websocket support to a ring webserver?

Might be, but I've usually switched to http-kit when needing websockets or server sent events. It is pretty much a drop-in replacement.

Yes, it's very possible.

Have a look at sente as a possible library to consider

Or, yes, http-kit will work too 🙂

I put up an example of using sente with reitit (that uses ring underneath) here:

🎉 1

along with using a plain-old-javascript websockets invocation here:

Thanks. I will take a look now.