IRC channel logs

2025-03-25.log

back to list of logs

<cobra>how can i run a web server that responds to clients asynchronously
<lechner>cobra / don't they all?
<ArneBab>cobra: do you mean making the client aware of the results of long running processes? If yes, look at long-polling, websockets, or server-sent events.
<cobra>ArneBab: no i dont mean that
<cobra>`run-server` blocks waiting for the handler and write-client
<cobra>as in, it won't attempt another `read-client`
<ArneBab>cobra: it should serve a second client while the first blocks. I think … if it does not: look at fibers web server: https://github.com/wingo/fibers/wiki/Manual#43-web-server-backend