Should be framestart + 2
This commit is contained in:
parent
11a21b7628
commit
9c1df6a8e1
@ -72,7 +72,7 @@ class MessageBuffer {
|
||||
}
|
||||
|
||||
$frameStart = 0;
|
||||
while ($frameStart + 1 <= $dataLen) {
|
||||
while ($frameStart + 2 <= $dataLen) {
|
||||
$headerSize = 2;
|
||||
$payload_length = unpack('C', $data[$frameStart + 1] & "\x7f")[1];
|
||||
$isMasked = ($data[$frameStart + 1] & "\x80") === "\x80";
|
||||
|
Loading…
Reference in New Issue
Block a user