I am trying to get the channel points redemption via websocket. I open a websocket connection to wss://eventsub.wss.twitch.tv/ws and if the message_type is “session_welcome”, I send a POST request to https://api.twitch.tv/helix/eventsub/subscriptions with the content:
{
"type": "channel.channel_points_custom_reward_redemption.add",
"version": "1",
"condition":{
"broadcaster_user_id": [MY USER ID]
},
"transport":{
"method": "websocket",
"session_id": [SESSION ID FROM WEBSOCKET]
}
}
In the Header I have:
Client-ID: [CLIENT ID]
Authorization: "Bearer " + [ACCESS TOKEN]
Accept: "application/vnd.twitchtv.v5+json"
But I get a 400 Bad Request Response with the message: “invalid transport and auth combination”.