Merge pull request #413 from Kurairaito/patch-1

Update WsServer.php
This commit is contained in:
Chris Boden 2016-05-17 10:15:04 -04:00
commit de4e02abd0

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);