Twitch doesn’t provide a socket.io compatible endpoint. Nor is there any hint of socket.io in the docs.
Socket wise Twitch offers the following:
- Twitch does provide a PubSub (regular sockets) endpoint.
- Twitch will provide EventSub over sockets at some point
- Twitch Chat is available over WebSocket as well.
All three of these will be “regular” sockets rather than socket.io, socket.io is sockets but uses a messaging encapsulation method.
Here are some node examples that do PubSub and Chat in nodeJS
So it depends on what data you are intending to obtain which then detemines what thing you will need to use.
The API is only available via HTTP interface, So cURL is used as cURL will translate to any language. Teach a developer to translate cURL into their language of choice and then you can use any API and they only need to write one version of docs!