Closed GoogleCodeExporter closed 9 years ago
BTW, I see something like a bug. In WebSocketFrame76::create there is the
payloadData = $data. At the same time in WebSocketFrame76::decode, it is
payloadData = substr($str, 1, strlen($str) - 2). The problem is that decode is
not used, while create is not equivalent.
Original comment by mo...@tushino.ru
on 21 Dec 2011 at 10:46
[deleted comment]
Weird didnt see your comment. Decode should be used when deserializing the
received packet. If thats not the case its a bug :)
Create is only to create a new object with specific data.
Original comment by ch...@devristo.com
on 21 Dec 2011 at 11:01
Yes, in protocol.php line 273 should be something like this:
$m = WebSocketMessage76::create(WebSocketFrame76::decode($data)->getData());
Works for me.
Original comment by mo...@tushino.ru
on 21 Dec 2011 at 11:14
You should use fromFrame instead of create and the getData(). Will fix this now
:)
Original comment by ch...@devristo.com
on 22 Dec 2011 at 8:16
Original comment by ch...@devristo.com
on 5 Jan 2012 at 9:54
Original issue reported on code.google.com by
mo...@tushino.ru
on 21 Dec 2011 at 10:40