Update WsServer.php
fixed crash when keepalive was called
This commit is contained in:
parent
340f036d37
commit
695995d3e7
@ -211,7 +211,7 @@ class WsServer implements HttpServerInterface {
|
|||||||
$lastPing = new Frame(uniqid(), true, Frame::OP_PING);
|
$lastPing = new Frame(uniqid(), true, Frame::OP_PING);
|
||||||
|
|
||||||
foreach ($this->connections as $key => $conn) {
|
foreach ($this->connections as $key => $conn) {
|
||||||
$wsConn = $this->connections[$from]->connection;
|
$wsConn = $this->connections[$conn]->connection;
|
||||||
|
|
||||||
$wsConn->send($lastPing);
|
$wsConn->send($lastPing);
|
||||||
$pingedConnections->attach($wsConn);
|
$pingedConnections->attach($wsConn);
|
||||||
|
Loading…
Reference in New Issue
Block a user