diff --git a/Version/RFC6455.php b/Version/RFC6455.php index de21e78..41473b1 100644 --- a/Version/RFC6455.php +++ b/Version/RFC6455.php @@ -99,7 +99,7 @@ class RFC6455 implements VersionInterface { $opcode = $frame->getOpcode(); if ($opcode > 2) { - if ($frame->getPayloadLength() > 125) { + if ($frame->getPayloadLength() > 125 || !$frame->isFinal()) { return $from->close($frame::CLOSE_PROTOCOL); }