Fork me on GitHub
#pedestal
<
2018-01-25
>
nblumoe12:01:08

Is there a way to add interceptors to the websocket route with an implementation like https://github.com/pedestal/pedestal/blob/master/samples/jetty-web-sockets/src/jetty_web_sockets/service.clj ?

souenzzo13:01:05

@nblumoe it's very easy to use io.pedestal.interceptor.chain/execute for ANY propose. just (let [initial-ctx {....}] (chain/execute initial-ctx [inter1 inter2]))

nblumoe13:01:38

Hm, right. I guess I actually rather have the problem of getting the correct context there. 😄

nblumoe13:01:32

I would like to use an interceptor-chain which has access to my system map (using integrant). But when ws-path is defined, the system hasn’t been initialized yet.