# Socket IO on Event Sub?

**URL:** <https://discuss.dev.twitch.com/t/socket-io-on-event-sub/45634>\
**Category:** API\
**Created:** [May 12, 2023, 7:26am UTC](https://discuss.dev.twitch.com/t/socket-io-on-event-sub/45634 "2023-05-12T07:26:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![AlexDD\_10](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/alexdd_10/32/24686_2.png) [@AlexDD\_10](https://discuss.dev.twitch.com/u/AlexDD_10)\
**Post date:** [May 12, 2023, 7:26am UTC](https://discuss.dev.twitch.com/t/socket-io-on-event-sub/45634/1 "2023-05-12T07:26:32Z")

</div>

Hey, i have been a whole day trying to find a way to connect to EventSub with socket io, i found that its not supported, but that topic was in 2021, i would like to know if its available now or not

---

<div class="post-metadata">

**Author:** ![Dist](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/dist/32/7192_2.png) [@Dist](https://discuss.dev.twitch.com/u/Dist)\
**Post date:** [May 12, 2023, 9:14am UTC](https://discuss.dev.twitch.com/t/socket-io-on-event-sub/45634/2 "2023-05-12T09:14:52Z")

</div>

[https://socket.io/docs/v4](https://socket.io/docs/v4)

> [@](#):
>
> ## What [Socket.IO](http://Socket.IO) is not[​](https://socket.io/docs/v4#what-socketio-is-not)
> 
> CAUTION
> 
> [Socket.IO](http://Socket.IO) is **NOT** a WebSocket implementation.
> 
> Although [Socket.IO](http://Socket.IO) indeed uses WebSocket for transport when possible, it adds additional metadata to each packet. That is why a WebSocket client will not be able to successfully connect to a [Socket.IO](http://Socket.IO) server, and a [Socket.IO](http://Socket.IO) client will not be able to connect to a plain WebSocket server either.

If you want to use EventSub with Websockets, you have to do it with a Websocket client, not [socket.io](http://socket.io) as that’s not a websocket client.

---

<div class="post-metadata">

**Author:** ![AlexDD\_10](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/alexdd_10/32/24686_2.png) [@AlexDD\_10](https://discuss.dev.twitch.com/u/AlexDD_10)\
**Post date:** [May 12, 2023, 9:25am UTC](https://discuss.dev.twitch.com/t/socket-io-on-event-sub/45634/3 "2023-05-12T09:25:22Z")

</div>

If i use socket.io-client would it work?

---

<div class="post-metadata">

**Author:** ![Dist](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/dist/32/7192_2.png) [@Dist](https://discuss.dev.twitch.com/u/Dist)\
**Post date:** [May 12, 2023, 9:41am UTC](https://discuss.dev.twitch.com/t/socket-io-on-event-sub/45634/4 "2023-05-12T09:41:32Z")

</div>

No, because socket.io-client isn’t a Websocket client, it’s a [socket.io](http://socket.io) client.

The Websockets transport for EventSub requires you to use a websocket client.

---

<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:** [June 11, 2023, 9:42am UTC](https://discuss.dev.twitch.com/t/socket-io-on-event-sub/45634/5 "2023-06-11T09:42:14Z")

</div>

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