Skip to content
This repository has been archived by the owner on Jan 27, 2019. It is now read-only.

Support incomplete messages received from Twitch. #27

Merged
merged 1 commit into from
Oct 16, 2017

Conversation

Sentinent
Copy link

@Sentinent Sentinent commented Oct 16, 2017

Description

In cases of large payloads (ex: joining over 50+ channels), Twitch will occasionally send incomplete messages.

Motivation and Context

The old implementation relied on Twitch sending complete messages, but ChatResponse.Parse would fail if given an incomplete message.

How Has This Been Tested?

FormatExceptions were observed on the current dev branch, but running a bot for ~30 minutes on this branch seemed to handle incomplete messages fine.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

Not sure if code follows style, review requested.

@Aux Aux merged commit b816d33 into Aux:dev Oct 16, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants