[WebSocket] Bug fix on close frame
This commit is contained in:
parent
1443a59724
commit
7d9db7c377
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user