Fork me on GitHub
#reveal
<
2021-03-13
>
dpsutton05:03:45

probably a silly question, but i'm doing clj -M:socket:reveal to add a socket server and startup with reveal. Reveal works a treat from this repl, but if i connect over a socket repl it doesn't seem to work. ie, nc localhost 50505 i can evaluate things and such but reveal isn't correctly hooked up. Are there some steps I can take here?

seancorfield05:03:32

@dpsutton You need to tap> values for them to show up in Reveal.

seancorfield05:03:01

That's how my integration with Chlorine and Clover works.

dpsutton05:03:23

oh i see. i thought you were just getting all results

dpsutton05:03:53

makes sense. i am making a subrepl with rebl that just hijacks :eval for that purpose. suppose that would also work for reveal

vlaaad08:03:38

@dpsutton the fundamental building block of reveal is a window that is accessible in the code with a 1-arg function that you can call to submit values to the window. repls, prepls, nrepl middleware that are bundled in reveal are all using this fundamental window/function primitive. If you are building a custom repl (like you did with REBL), you can use this too