Hi, we have a question regarding extension pubSub System:
If we send a message to your API with targets set to [“broadcast”], this message will get delivered two times to the extension. The callback is always called two times.
We are sure that our EBS sends the message only one time to the Twitch PubSub API.
Our logs say that only one https-connection with the message is established.
It is send the following way:
Are you doing something like, what I’ve done before and caused your listen to be called more than once? As per:
I ended up having my listen callback called four times. A listen being called inside onAuthorized causes unpredictable results and/or multiple listeners being bound.
Exactly that is what I do - I call the listen function inside onAuthorized callback.
I putted it outside now and now it works.
This looks like a bug on twitch side. Maybe it makes sense to provide this constrain in the documentation or just solve the bug (seems to be an old bug)