|
@@ -124,8 +124,6 @@ class WebSocketClient
|
|
|
$this->socket = new \swoole_client($type);
|
|
|
if ($this->ssl_key_file)
|
|
|
{
|
|
|
- var_dump($this->ssl_key_file);
|
|
|
- var_dump($this->ssl_cert_file);
|
|
|
var_dump(file_exists($this->ssl_key_file));
|
|
|
var_dump(file_exists($this->ssl_cert_file));
|
|
|
$this->socket->set(array(
|
|
@@ -137,6 +135,7 @@ class WebSocketClient
|
|
|
'package_body_offset' => PACKAGE_BODY_OFFSET, //第几个字节开始计算包内容
|
|
|
'package_max_length' => PACKAGE_MAXLENG, //协议最大长度*/
|
|
|
));
|
|
|
+ var_dump($this->socket);
|
|
|
}
|
|
|
}
|
|
|
else
|