Fork me on GitHub
#pedestal
<
2017-04-08
>
ddeaguiar13:04:53

@kenny, I don’t have a lot of experience with SSE, but I think so. See https://github.com/pedestal/pedestal/issues/359. Pedestal cleans up everything it creates when shutting down an SSE stream and it provides a hook via the on-client-disconnect option which can be set when starting the event stream.

ddeaguiar13:04:57

the doc-string states that on-client-disconnect takes an arg but the code indicates it’s a no args fn.

ddeaguiar13:04:22

The on-client-disconnect function does take one argument, the context.