aleph

gomosdg 2021-05-11T07:47:26.002800Z

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.

mccraigmccraig 2021-05-11T07:59:41.003900Z

@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

gomosdg 2021-05-11T08:01:34.004500Z

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