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);
|
$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
|
||||||
|
Loading…
Reference in New Issue
Block a user