# What scope does PubSub need?

**URL:** <https://staging-discuss.dev.twitch.com/t/what-scope-does-pubsub-need/7514>\
**Category:** Chat and IRC\
**Created:** [September 20, 2016, 6:08am UTC](https://staging-discuss.dev.twitch.com/t/what-scope-does-pubsub-need/7514 "2016-09-20T06:08:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![harrymilne](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/harrymilne/32/362_2.png) [@harrymilne](https://staging-discuss.dev.twitch.com/u/harrymilne)\
**Post date:** [September 20, 2016, 6:08am UTC](https://staging-discuss.dev.twitch.com/t/what-scope-does-pubsub-need/7514/1 "2016-09-20T06:08:53Z")

</div>

I’ve been trying to LISTEN to PubSub but I’m not sure what to use as `auth_token`.

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://staging-discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [September 20, 2016, 9:01am UTC](https://staging-discuss.dev.twitch.com/t/what-scope-does-pubsub-need/7514/2 "2016-09-20T09:01:17Z")

</div>

Any scope should do

---

<div class="post-metadata">

**Author:** ![harrymilne](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/harrymilne/32/362_2.png) [@harrymilne](https://staging-discuss.dev.twitch.com/u/harrymilne)\
**Post date:** [September 20, 2016, 9:45am UTC](https://staging-discuss.dev.twitch.com/t/what-scope-does-pubsub-need/7514/4 "2016-09-20T09:45:41Z")

</div>

Could you give an example JSON request to LISTEN to a channel’s moderator actions? (bans)

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://staging-discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [September 20, 2016, 9:45am UTC](https://staging-discuss.dev.twitch.com/t/what-scope-does-pubsub-need/7514/5 "2016-09-20T09:45:59Z")

</div>

> [@In-line broadcaster chat mod logs](https://staging-discuss.dev.twitch.com/t/in-line-broadcaster-chat-mod-logs/7281/21):
>
> Er is that much different than a client-side time-stamp when it receives the event? I imagine this is for ordering purposes, or what? We try to keep events as small as possible to limit maintenance, and to keep performance high. Events should be received as they get sent through, and a timestamp might be slightly different depending on which server handled the request (though we use ntp and theoretically shouldn’t be clock drift)

`UPDATE: We are changing the topic relatively soon, so we can support moderators receiving these messages. You should listen on the `chat\_moderator\_actions.{user\_id}.{room\_id} where user\_id is the moderator user ID, and roomID is the user\_id of the channel/user.`

---

<div class="post-metadata">

**Author:** ![system](https://d2spem0quai2ol.cloudfront.net/original/2X/0/05909729875cce3b53e59d5561c4d23bb14948fc.png) [@system](https://staging-discuss.dev.twitch.com/u/system)\
**Post date:** [October 20, 2016, 9:46am UTC](https://staging-discuss.dev.twitch.com/t/what-scope-does-pubsub-need/7514/6 "2016-10-20T09:46:03Z")

</div>

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