Fork me on GitHub
#aleph
<
2021-05-11
>
gomosdg07:05:26

Hi everyone, Thanks to everyone that’s contributed to aleph. Really cool tool! I just need to know, is there a way to find out when a websocket is clodes? For example, on http-kit there’s on-close function that you can provide.

mccraigmccraig07:05:41

@lilokoego the manifold stream you get from the websocket will close when the websocket closes - you can use stream/on-closed to register a callback: https://github.com/clj-commons/manifold/blob/master/src/manifold/stream.clj#L209

gomosdg08:05:34

Awesome, thanks! Both bits of information are very helpful!