From bf808d4c611b5d1ae2ad11603a317450f3b0313c Mon Sep 17 00:00:00 2001 From: Chris Boden Date: Sun, 20 May 2012 13:24:37 -0400 Subject: [PATCH] AutobahnTestSuite Added files to test Ratchet against the AutobahnTestSuite Bumped version v0.2b Updated how to handle control frames to run the test suite --- MessageParser.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/MessageParser.php b/MessageParser.php index 4ac294a..11fc388 100644 --- a/MessageParser.php +++ b/MessageParser.php @@ -15,8 +15,9 @@ class MessageParser { $from->WebSocket->frame->addBuffer($data); if ($from->WebSocket->frame->isCoalesced()) { if ($from->WebSocket->frame->getOpcode() > 2) { - $from->close(); - throw new \UnexpectedValueException('Control frame support coming soon!'); + unset($from->WebSocket->frame); + + return; } // Check frame // If is control frame, do your thing