Fork me on GitHub
#pedestal
<
2020-04-06
>
hindol07:04:17

Hi, I have a question specific to this example: https://github.com/pedestal/pedestal/blob/master/samples/jetty-web-sockets/src/jetty_web_sockets/service.clj Each established connection is maintained in an atom ws-clients. When server initiates a disconnect, it is clear which connection is getting closed but when the :on-close handler is triggered with only the code and reason, how does the server identify which session got closed?

hindol12:04:26

Figured out I need to pass my own listener to Jetty.