in src/controller/containers/ControllerProvider/index.tsx [5:11]
async function sendMessage(msg: { type: any }): Promise<void> {
if (!window.controllerEnvironment) return;
console.log(`Sending message to hub ${msg.type}`);
const env = await window.controllerEnvironment;
env.sendMessage(msg);
}