How to share objects between panels?

Hello there,
I’m creating 2 custom plugins. how can I share objects between the panels instances?
let’s say I have one panel to create a web socket and pass it to the other panel to use it.
is there a way for this?
like mixin or react context for example.

I don’t believe there’s an easy way to do this. To communicate between panels, you could use a dashboard variable. Panels using a variable update whenever its value changes, so you could effectively use it to pass (simple) values between panels.

That being said, I’m pretty sure you wouldn’t be able to share a web socket this way. You’d need some form of shared storage between panels which, to the best of my knowledge, isn’t available to plugins.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.