From 012bc525226cc8d2f74e811398e9b34ba164e8e7 Mon Sep 17 00:00:00 2001
From: 何书鹏 <heshupeng@bronet.cn>
Date: Fri, 13 May 2022 20:21:57 +0800
Subject: [PATCH] 1

---
 application/socketio/controller/Server.php |  9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/application/socketio/controller/Server.php b/application/socketio/controller/Server.php
index aa62c46..aabb560 100644
--- a/application/socketio/controller/Server.php
+++ b/application/socketio/controller/Server.php
@@ -19,14 +19,7 @@ class Server
     public function index(){
         header("Access-Control-Allow-Origin: *");
         // PHPSocketIO服务
-        $context = array(
-            'ssl' => array(
-                'local_cert'  => '/usr/local/nginx/uploads/chengyigou.cn/chengyigou.cn.crt',
-                'local_pk'    => '/usr/local/nginx/cert/chengyigou.cn/chengyigou.cn.key',
-                'verify_peer' => false,
-            )
-        );
-        $sender_io = new SocketIO(2120,$context);
+        $sender_io = new SocketIO(2120);
         // 客户端发起连接事件时,设置连接socket的各种事件回调
         $sender_io->on('connection', function($socket){
             // 当客户端发来登录事件时触发
--
libgit2 0.24.0