1 Star 0 Fork 0

AGUANG2024 / swoole-webim

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
server.php 619 Bytes
一键复制 编辑 原始数据 按行查看 历史
韩天峰 提交于 2019-10-20 00:37 . init
<?php
define('DEBUG', 'on');
define('WEBPATH', __DIR__.'/webroot');
define('ROOT_PATH', __DIR__);
/**
* /vendor/autoload.php是Composer工具生成的
* shell: composer update
*/
require __DIR__.'/vendor/autoload.php';
/**
* 注册命名空间到自动载入器中
*/
$app = SPF\App::getInstance(__DIR__);
$app->loader->addNameSpace('WebIM', __DIR__.'/src/');
$app->config->setPath(__DIR__.'/configs');
SPF\App::$enableCoroutine = true;
$server = new WebIM\Server($app->config['webim']);
$server->run();
//设置PID文件的存储路径
//Swoole\Network\Server::setPidFile(__DIR__ . '/log/webim_server.pid');
1
https://gitee.com/AGUANG2024/php-webim.git
git@gitee.com:AGUANG2024/php-webim.git
AGUANG2024
php-webim
swoole-webim
2.0

搜索帮助