Fork me on GitHub
#biff
<
2022-12-28
>
darong16:12:24

Hello all, I'm building a web app that uses htmx and server-sent events heavily. What would be your recommended web server? I'm on the fence between httpkit and aleph.

Jacob O'Bryant17:12:05

Biff uses Jetty via this adapter, which adds support for web sockets: https://github.com/sunng87/ring-jetty9-adapter. looks like you could theoretically do SSE on top of that: https://github.com/sunng87/ring-jetty9-adapter/issues/63#issuecomment-1186704405. I've never used SSE myself and have no idea how hard it would be. Other than that, the only stuff I know about web servers is what I read here: https://ericnormand.me/mini-guide/clojure-web-servers

Jacob O'Bryant17:12:02

(if you don't have a strong preference between SSE and web sockets, then I can attest that Jetty works fine for web sockets)

darong17:12:24

Thank you. I'll take a look.