Pablo, totally understand your concern. This conversation is a bit confusing as we have two topics going on. I’ve created a new topic regarding making system calls, so we can just focus on C++ communication here.
Regarding C++ plugin access, WebSockets are not going to fill all the use cases here. WebSockets work great for communication with external apps (I’ve used this before), but communication between C++ plugins and UXP Panels within Adobe apps really needs to be more direct. For instance, I have some C++ plugins which will run ExtendScript functions on their own that are only possible in ExtendScript. This wouldn’t work with WebSockets, as a specific panel would also have to be open to receive a message, run the command, and return the result. The inverse is also true will calling C++ commands from UXP (ExtendScript in the past).