ghedipunk/PHP-Websockets — pull request #18 by ghedipunk (2014-09-30 19:12:50+00:00)
Title: Apply mask before checking string length to see if entire message is rec...

...eived

Resolves issue #16, where multi-byte encoded messages were sometimes reporting a length less than the length reported by the message's headers. Applied to non-mbstring logic branch for consistency.