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:
parent
d383f3e829
commit
bf808d4c61
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user