Update WsServer.php

fixed crash when keepalive was called
This commit is contained in:
Kurairaito 2016-04-08 21:24:28 +02:00
parent 340f036d37
commit 695995d3e7

View File

@ -211,7 +211,7 @@ class WsServer implements HttpServerInterface {
$lastPing = new Frame(uniqid(), true, Frame::OP_PING);
foreach ($this->connections as $key => $conn) {
$wsConn = $this->connections[$from]->connection;
$wsConn = $this->connections[$conn]->connection;
$wsConn->send($lastPing);
$pingedConnections->attach($wsConn);