3 ms·
HTTP-Kit in Clojure-land has solved this beautifully with a unified interface for handling both WebSocket messages and HTTP requests, so using one function you
by capableweb 5y ago
HTTP-Kit in Clojure-land has solved this beautifully with a unified interface for handling both WebSocket messages and HTTP requests, so using one function you receive requests/messages that you can act on, and responding to those also have the same interface.
http://http-kit.github.io/http-kit/org.httpkit.server.html#var-Channel http://http-kit.github.io/http-kit/org.httpkit.server.html#v...
I'm sure similar things exist in other ecosystems too, so it's not impossible.
- regularfry 5y agoI'm not sure I see how that solves the problem, beautifully or otherwise. How are links constructed?
- codemonkey-zeta 5y agohttps://http-kit.github.io/ https://http-kit.github.io/ The homepage is probably better to understand the project than the API reference provided above.