服务器按文档配置了SSL 文档: <?php require_once __DIR__ . '/vendor/autoload.php'; use Workerman\Worker; use PHPSocketIO\SocketIO; // 传入ssl选项,包含证书的路径 $context = array( 'ssl' => array( 'local_cert' => ...