I would like to send commands to my Ruby plugin from an external source. They should be executed as soon as the command is send. While it’s possible to register callbacks for WebDialogs, as far as I know that’s not possible in other situations. Having a background thread blocks the whole program, pulling a file constantly does too.
I imagine, it could be possible to use a WebDialog to open a webpage from a local webserver which can receive commands from the external source and redirect it to the plugin via the webpage and registered callbacks in ruby.
Before I try this (in my opinion hacky) workaround, is there a simpler solution?