# Getting realtime channel events with websockets

**URL:** <https://discuss.dev.twitch.com/t/getting-realtime-channel-events-with-websockets/22286>\
**Category:** API\
**Created:** [August 25, 2019, 5:43pm UTC](https://discuss.dev.twitch.com/t/getting-realtime-channel-events-with-websockets/22286 "2019-08-25T17:43:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![VirtuaLTV](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/virtualtv/32/6926_2.png) [@VirtuaLTV](https://discuss.dev.twitch.com/u/VirtuaLTV)\
**Post date:** [August 25, 2019, 5:43pm UTC](https://discuss.dev.twitch.com/t/getting-realtime-channel-events-with-websockets/22286/1 "2019-08-25T17:43:02Z")

</div>

I want to make a bot and alerts overlay.

I want to know if API have websockets where I can get all events like follow / host / sub etc…

I have seen the Pubsub but it’s only for Sub and Cheer ?

Thanks

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [August 25, 2019, 5:48pm UTC](https://discuss.dev.twitch.com/t/getting-realtime-channel-events-with-websockets/22286/2 "2019-08-25T17:48:26Z")

</div>

> [@VirtuaLTV](#):
>
> I have seen the Pubsub but it’s only for Sub and Cheer ?

Yeah the only documented topics are sub and cheer

> [@VirtuaLTV](#):
>
> I want to know if API have websockets where I can get all events like follow / host / sub etc…

There isn’t.

You can connect to Chat over websockets and watch for host, sub (and cheer) events.

There is no websocket for Follow events, you could use Webhooks instead however.

[https://dev.twitch.tv/docs/api/webhooks-guide/](https://dev.twitch.tv/docs/api/webhooks-guide/)

---

<div class="post-metadata">

**Author:** ![system](https://d2opxh93rbxzdn.cloudfront.net/original/2X/0/05909729875cce3b53e59d5561c4d23bb14948fc.png) [@system](https://discuss.dev.twitch.com/u/system)\
**Post date:** [September 24, 2019, 5:48pm UTC](https://discuss.dev.twitch.com/t/getting-realtime-channel-events-with-websockets/22286/3 "2019-09-24T17:48:29Z")

</div>

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