Control Center

CastHub makes controlling Elgato Control Center easy by communicating on your behalf. For example:

async mounted() {
    const { id } = this.identity;

    // Connect to the external WebSocket.
    const ws = await window.casthub.ws(id);

    // Listen to specific Control Center events.
    ws.on('deviceAdded', data => {
        console.log('deviceAdded', data);

    // Request a specific command response.
    const response = await ws.send('getApplicationInfo');

    await super.mounted();