Devristo/phpws — pull request #46 by stgnet (2014-10-03 18:39:20+00:00)
Title: Fix for incomplete handshake header

When starting up a Client, the first packet of data received is expected to be a complete header, and no validation of it is performed even for RFC6455 required elements. This addition insures that the entire header has arrived before marking the websocket transport as connected, instead of allowing the late arriving header data to remain in the data stream, resulting in framing synchronization problems and lost data.