Fork me on GitHub
#portal
<
2022-03-27
>
Carlo19:03:24

Here's a dumb question: is the type of portal invocation that I use (JVM vs clj) tied to the project I'm working in? Or could I use a portal opened via the JVM tapping from a cljs project?

djblue20:03:38

You can send taps from one process to another via the https://github.com/djblue/portal#remote-api. Is that what you are thinking?

Carlo12:03:06

No, it's more that I don't get when you would need a JVM portal instead of a cljs one or a bb one

djblue16:04:32

I think that comes down to what runtimes you are working in, what features you want and what preferences you have. At work, I have two JVM Portals, one for clj/cljs timbre logs and the other for clj/cljs taps.

🙌 1
Carlo01:04:59

Yes, so, say that I'm in a clojurescript project, there's no actual reason for me to use a cljs portal too, right? I can very well use a JVM one? I guess I'm not distinguishing what features I could want and what preferences I could have, which makes the choice a bit confusing

Carlo01:04:33

To ask a more precise, question, what can I do with a cljs portal that I can't do with a JVM one?

djblue01:04:38

Interact with native objects is the big one. The remote api doesn't capture raw objects, which is fine most of the time.

🙌 1