pedestal

hindol 2020-04-06T07:10:17.052400Z

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?

hindol 2020-04-08T12:04:26.053500Z

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

hindol 2020-04-06T21:42:34.053200Z

Most likely a Docker issue. If you are on Linux, maybe try enabling host networking?