Please can somebody explain the listener on the react extensions-boilerplate example

That function will listen to messages broadcast to the TwitchPubsub.

You can use

To broadcast such a message.

Their is one made to the Twitch PubSub system. It’s not made to your EBS but the main Twitch PubSub