reveal

Docs: https://vlaaad.github.io/reveal/ Source: https://github.com/vlaaad/reveal
dpsutton 2021-03-13T05:00:45.051800Z

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?

seancorfield 2021-03-13T05:19:32.052200Z

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

seancorfield 2021-03-13T05:20:01.052600Z

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

dpsutton 2021-03-13T05:23:23.052900Z

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

dpsutton 2021-03-13T05:23:53.053500Z

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

vlaaad 2021-03-13T08:52:38.057100Z

@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