# Client stops receiving messages

**URL:** <https://discuss.dev.twitch.com/t/client-stops-receiving-messages/33676>\
**Category:** API\
**Created:** [September 28, 2021, 12:01pm UTC](https://discuss.dev.twitch.com/t/client-stops-receiving-messages/33676 "2021-09-28T12:01:54Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![CommanderLake](https://avatars.discourse-cdn.com/v4/letter/c/e36b37/32.png) [@CommanderLake](https://discuss.dev.twitch.com/u/CommanderLake)\
**Post date:** [September 28, 2021, 12:01pm UTC](https://discuss.dev.twitch.com/t/client-stops-receiving-messages/33676/1 "2021-09-28T12:01:54Z")

</div>

I’m developing my own anti bot bot to get rid of random bots from my chat which don’t need to be there.  
I’m using LibTwitch for C# and a few days ago it was receiving messages and pings just fine but now it almost immediately stops receiving anything including pings, I tried sending my own pings periodically but that didn’t help, it might receive 1 chat message but that’s it however I can still send messages to the chat successfully and it doesn’t disconnect.

---

<div class="post-metadata">

**Author:** ![CommanderLake](https://avatars.discourse-cdn.com/v4/letter/c/e36b37/32.png) [@CommanderLake](https://discuss.dev.twitch.com/u/CommanderLake)\
**Post date:** [September 28, 2021, 12:17pm UTC](https://discuss.dev.twitch.com/t/client-stops-receiving-messages/33676/2 "2021-09-28T12:17:44Z")

</div>

After a bit more testing the server seems to stop responding right after I receive the first chat message but it doesn’t always receive a message before it stops responding.

---

<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:** [September 28, 2021, 12:19pm UTC](https://discuss.dev.twitch.com/t/client-stops-receiving-messages/33676/3 "2021-09-28T12:19:48Z")

</div>

Sounds like a bug in the library

It’s recieving the first message then stops processing the inbound buffer.

---

<div class="post-metadata">

**Author:** ![CommanderLake](https://avatars.discourse-cdn.com/v4/letter/c/e36b37/32.png) [@CommanderLake](https://discuss.dev.twitch.com/u/CommanderLake)\
**Post date:** [September 28, 2021, 12:23pm UTC](https://discuss.dev.twitch.com/t/client-stops-receiving-messages/33676/4 "2021-09-28T12:23:50Z")

</div>

It cant be a bug in the library, it was working just fine a few days ago.

---

<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:** [September 28, 2021, 12:24pm UTC](https://discuss.dev.twitch.com/t/client-stops-receiving-messages/33676/5 "2021-09-28T12:24:47Z")

</div>

Then you should reach out to the library dev whom can advise what information they need or can provide to you to help debug the problem.

All I can tell you are that my bots are operating fine. So a problem with a bot in $specificLibrary could be a problem in that library or the langauge underneath it.

or the library can enable/provide additional logging to help with the issue.

Might be a ISP problem if you are home hosting for example, additional logging in the bot/lib might help trace that.

Or trying you bot under a different lib/language

---

<div class="post-metadata">

**Author:** ![CommanderLake](https://avatars.discourse-cdn.com/v4/letter/c/e36b37/32.png) [@CommanderLake](https://discuss.dev.twitch.com/u/CommanderLake)\
**Post date:** [September 28, 2021, 12:38pm UTC](https://discuss.dev.twitch.com/t/client-stops-receiving-messages/33676/6 "2021-09-28T12:38:03Z")

</div>

It just decided to start working properly again, no idea why.

---

<div class="post-metadata">

**Author:** ![CommanderLake](https://avatars.discourse-cdn.com/v4/letter/c/e36b37/32.png) [@CommanderLake](https://discuss.dev.twitch.com/u/CommanderLake)\
**Post date:** [September 28, 2021, 12:55pm UTC](https://discuss.dev.twitch.com/t/client-stops-receiving-messages/33676/7 "2021-09-28T12:55:51Z")

</div>

I spoke too soon, it stopped receiving messages again while I’m watching the network traffic with microsoft network monitor and while it is occasionally receiving packets and responding none of the messages in chat I see in my web browser are causing packets to be received by my bot so its definitely not the software and everything else using my internet connection is working just fine so I’m stumped. If it were a network issue surely the connection would be dropped not just stop receiving certain packets… The connection has finally been dropped likely due to lack of activity.

---

<div class="post-metadata">

**Author:** ![CommanderLake](https://avatars.discourse-cdn.com/v4/letter/c/e36b37/32.png) [@CommanderLake](https://discuss.dev.twitch.com/u/CommanderLake)\
**Post date:** [September 28, 2021, 1:58pm UTC](https://discuss.dev.twitch.com/t/client-stops-receiving-messages/33676/8 "2021-09-28T13:58:44Z")

</div>

I just found it could be a problem with our connection.

---

<div class="post-metadata">

**Author:** ![CommanderLake](https://avatars.discourse-cdn.com/v4/letter/c/e36b37/32.png) [@CommanderLake](https://discuss.dev.twitch.com/u/CommanderLake)\
**Post date:** [October 8, 2021, 2:08am UTC](https://discuss.dev.twitch.com/t/client-stops-receiving-messages/33676/9 "2021-10-08T02:08:29Z")

</div>

Its definitely not a problem with my connection, it seems that some chats I can join and it works perfectly but with most chats I join I might get a few messages then the clients connection gets dropped!

---

<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:** [November 7, 2021, 2:09am UTC](https://discuss.dev.twitch.com/t/client-stops-receiving-messages/33676/10 "2021-11-07T02:09:07Z")

</div>

Closed on November 7, 2021, 2:09am UTC

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