Fork me on GitHub
#re-frame
<
2018-11-03
>
lmergen09:11:10

what would be the right place to store sente websocket connection data ? all sente examples (including the re-frame one) use global defines, but i'm thinking that it should be a coeffect

lmergen09:11:35

it's not really data though, but it is state

mikethompson09:11:16

We've maintained sente connections outside of app-db. When messages arrive they are dispatched.

mikethompson09:11:42

Connections are opened and Messages are sent via effects

lmergen09:11:53

the dispatching is what i'm also doing

lmergen09:11:31

i'm new to cljs and frontend in general, i'm trying to understand the reasons it should not be stored as a coeffect -- so you can maintain persistence even in case of reloads ?