Fork me on GitHub
#pedestal
<
2018-07-11
>
Lightlight09:07:11

When using websockets with pedestal and jetty, any tips on keeping track of sessions so I can send message to a specific connection? Not sure how to use ServletUpgradeRequest/Response with my own listener function to achieve this.

mitchelkuijpers11:07:19

You could create a atom to store the connections

Lightlight11:07:13

yes, but i cannot distinguish between connections on incoming messages.

mitchelkuijpers12:07:42

Ah then you need to send a id or something to distinguish this