diff --git a/src/Client.php b/src/Client.php index f0f8057..3b23419 100644 --- a/src/Client.php +++ b/src/Client.php @@ -159,10 +159,11 @@ protected function handleClientConnection(): void { $this->client = new WsClient( uri: "{$this->protocol}://{$this->uri}:{$this->port}/{$this->query}", - options: [ + options: array_merge([ 'timeout' => $this->timeout, + ], $this->logger ? [ 'logger' => $this->logger, - ], + ] : []), ); $this->handleChannelConnection();