Websocket Tags Request Help

Hello all,
I am new to software projects and am working on a chat controlled LED fixture. I want only subscribers to be able to control the LEDs. I am using Arduino on an ESP32.

So far using Websockets, I am able to retrieve chat messages and see who sent them but I want to use the Tags functionality to see if they are a Subscriber or not. However, I dont know how to integrate the Tags request function. I see from the documentation how to request, but I dont know how to integrate that with the Arduino WebSocketsClient library. Any help is greatly appreciated!

< CAP REQ :twitch.tv/tags
> :tmi.twitch.tv CAP * ACK :twitch.tv/tags

Like how you send

JOIN #roomname

Thats what you do for caps

You send

CAP REQ :twitch.tv/tags

For example

https://github.com/BarryCarlyon/twitch_misc/blob/main/chat/chat.js#L67

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.