Skip to content

Commit

Permalink
Update Client.php
Browse files Browse the repository at this point in the history
  • Loading branch information
walkor authored Apr 7, 2023
1 parent 42e9aec commit 284f93c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

use Revolt\EventLoop;
use Workerman\Connection\AsyncTcpConnection;
use Workerman\Redis\Protocols\Redis;
use Workerman\Timer;

/**
Expand Down Expand Up @@ -323,6 +324,7 @@ public function connect()
$timeout = isset($this->_options['connect_timeout']) ? $this->_options['connect_timeout'] : 5;
$context = isset($this->_options['context']) ? $this->_options['context'] : [];
$this->_connection = new AsyncTcpConnection($this->_address, $context);
$this->_connection->protocol = Redis::class;
if(!empty($this->_options['ssl'])){
$this->_connection->transport = 'ssl';
}
Expand Down

0 comments on commit 284f93c

Please sign in to comment.