[WebSocket] Bug fix on close frame

This commit is contained in:
Chris Boden 2012-05-14 16:33:46 -04:00
parent 1443a59724
commit 7d9db7c377

View File

@ -113,7 +113,7 @@ class WsServer implements MessageComponentInterface {
$from->WebSocket->frame->addBuffer($msg);
if ($from->WebSocket->frame->isCoalesced()) {
if ($from->WebSocket->frame->getOpcode() > 2) {
$from->end();
$from->close();
throw new \UnexpectedValueException('Control frame support coming soon!');
}
// Check frame