Kraken\Channel\Model\Socket\Connection\ConnectionPool::getConnected PHP Метод

getConnected() публичный Метод

public getConnected ( ) : string[]
Результат string[]
    public function getConnected()
    {
        $conns = [];
        // there is no need for timestamp validation since messages to inactive clients are lost either way
        foreach ($this->connectionPool as $connID => $conn) {
            $conns[] = $connID;
        }
        return $conns;
    }

Usage Example

Пример #1
0
 /**
  * @override
  * @inheritDoc
  */
 public function getConnected()
 {
     return $this->connectionPool->getConnected();
 }