Aerys\Websocket\Rfc6455Endpoint::getInfo PHP Method

getInfo() public method

public getInfo ( integer $clientId ) : array
$clientId integer
return array
    public function getInfo(int $clientId) : array
    {
        if (!isset($this->clients[$clientId])) {
            return [];
        }
        $client = $this->clients[$clientId];
        return ['bytes_read' => $client->bytesRead, 'bytes_sent' => $client->bytesSent, 'frames_read' => $client->framesRead, 'frames_sent' => $client->framesSent, 'messages_read' => $client->messagesRead, 'messages_sent' => $client->messagesSent, 'connected_at' => $client->connectedAt, 'closed_at' => $client->closedAt, 'last_read_at' => $client->lastReadAt, 'last_sent_at' => $client->lastSentAt, 'last_data_read_at' => $client->lastDataReadAt, 'last_data_sent_at' => $client->lastDataSentAt];
    }