Skip to content
This repository was archived by the owner on Apr 30, 2021. It is now read-only.

Conversation

@greg-kennedy
Copy link
Contributor

Some testing while building a client against a live service turned up a few issues with this library. This commit fixes two problems:

  • Close messages may have a payload containing a 2-byte uint16 error number, and then a UTF-8 message in the payload. These were not handled on receive or send.

  • Frame class always converted payload to/from UTF-8, but this is really only correct for Text frames. Control frames and Binary frames should not be converted.

This patch adds correct handling of Close frames, and changes the Frame class to only encode/decode UTF-8 for Text frames.

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.

1 participant