How to subscribe to events with Twitch CLI EventSub websocket server

there are a couple of uservoice open on this one to improve EventSub for Overlay builders for things like this

The idea is the EventSub sends the same data layout regardless of the transport used.

So you can run tests via “webhook” eventsub if needed and then swap the logic to a websocket.

Or have a server, webhook into the server and the server forwards to a socket. and instead of connecting directly to Twitch you connect to your server as a proxy.