If anyone comes by here and want a websocket CAPX, i have made one here:
https://www.construct.net/en/forum/construct-2/works-in-progress-feedback-requests-24/integrated-twitch-overlay-game-125648
Develop games in your browser. Powerful, performant & highly capable.