Having a message listener in this bundles' extension code to forward messages to obs-websocket would remove the obs-websocket-js dependency for other bundles and allow a single connection to handle all requests by bundles.
Could also potentially be used to clean up some extension listeners and instead send requests directly from dashboard elements.
closing, found out that NodeCG does not support sending messages to another bundle from extension code (sendMessageToBundle is browser only), which kind of defeats the point of this.
Having a message listener in this bundles' extension code to forward messages to obs-websocket would remove the obs-websocket-js dependency for other bundles and allow a single connection to handle all requests by bundles.
Could also potentially be used to clean up some extension listeners and instead send requests directly from dashboard elements.