From 79acf0998c8789fe65df686352405e6b71bc9d86 Mon Sep 17 00:00:00 2001 From: Savio Resende Date: Thu, 28 Dec 2023 13:09:57 -0600 Subject: [PATCH] Adjustment for logger --- src/Client.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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();