Fork me on GitHub
#pedestal
<
2018-02-20
>
nooga20:02:54

how can I get request body as a string in pedestal?

nooga20:02:01

I see body-params

nooga20:02:21

but there’s no text “parser” there

nooga20:02:35

lol, nevermind, it’s slurp

dadair23:02:08

Does anyone know of any resources for handling websocket-sessions in pedestal? I’ve followed the jetty-websockets sample, but it does not cover tying websocket handlers (`:on-text`, :on-close, etc) to a particular session (only :on-connect). For instance, how to identify the client that caused :on-close to fire due to an idleTimeout (to allow for session cleanup, etc)?

dadair23:02:55

I’ve found https://groups.google.com/forum/#!searchin/pedestal-users/websocket%7Csort:date/pedestal-users/IOc-WKkTFLM/6ga8vcTiAgAJ, but not sure how one would go about implementing a custom listener to track the session