Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sendMessage should accept bytes and encode unicode
Not everything sent to sendMessage is necessarily valid unicode. For example, when Firefox closes the connection, a control frame is sent that is not valid utf-8. Also, checking the length of the unicode-string is wrong, as it can be shorter than the encoded length.
- Loading branch information