Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The responseText variable can be truncated #34

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

pmbiaka
Copy link

@pmbiaka pmbiaka commented Jul 1, 2014

In some cases, the responseText variable may be truncated so the MessageEvent at the end of the response can be not dispatched. If this happens, the new responseText is appended to the lines which were not processed so it is possible to have a consistent message.

pmbiaka and others added 2 commits July 1, 2014 10:59
…not dispatched. In this case, append the lines which were not processed to the new responseText.
…lways the type 'message'.

The fix consists to add the eventType to the constructor of MessageEvent.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants