socket = $socket; $this->host = $host; $this->subdomain = $subdomain; $this->client_id = $clientId; $this->shared_at = now()->toDateTimeString(); } public function setMaximumConnectionLength(int $maximumConnectionLength) { $this->socket->send(json_encode([ 'event' => 'setMaximumConnectionLength', 'length' => $maximumConnectionLength, ])); } public function registerProxy($requestId) { $this->socket->send(json_encode([ 'event' => 'createProxy', 'request_id' => $requestId, 'client_id' => $this->client_id, ])); } }