AutobahnTestSuite

Added files to test Ratchet against the AutobahnTestSuite
Bumped version v0.2b
Updated how to handle control frames to run the test suite
This commit is contained in:
Chris Boden 2012-05-20 13:24:37 -04:00
parent d383f3e829
commit bf808d4c61

View File

@ -15,8 +15,9 @@ class MessageParser {
$from->WebSocket->frame->addBuffer($data); $from->WebSocket->frame->addBuffer($data);
if ($from->WebSocket->frame->isCoalesced()) { if ($from->WebSocket->frame->isCoalesced()) {
if ($from->WebSocket->frame->getOpcode() > 2) { if ($from->WebSocket->frame->getOpcode() > 2) {
$from->close(); unset($from->WebSocket->frame);
throw new \UnexpectedValueException('Control frame support coming soon!');
return;
} }
// Check frame // Check frame
// If is control frame, do your thing // If is control frame, do your thing