Inconsistent PubSub Broadcast Behavior, MESSAGE missing from Frames

twitch.ext.listen is fired just once on componntDidMount call. What is fired after update to EBS is function(){}.

The v1 connection you are refering to is a websocket to pub/sub. It’ll receive all messages from channel that your app registered to. This means that you’ll start getting all "brodcast" messages if you fired twitch.ext.listen("broadcast", ...) at least once (and of course didn’t cancel it by firing twitch.ext.unlisten).

On the first sight your code looks ok, and there isn’t enough detail to determine what is the cause. I se are two potential reasons:

  • there is a bug in your backend service that fails to publish new messages to PUB/SUB
  • this.twitch is not available when you try to call this.twitch.listen in the componentDidMount. How do you inject twitch lib to your component?