1 Star 0 Fork 1

小刘 / tpstudy

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
start.php 531 Bytes
一键复制 编辑 原始数据 按行查看 历史
小刘 提交于 2021-10-22 12:02 . 重说结构
<?php
require_once __DIR__ . '/vendor/autoload.php';
require_once __DIR__ . '/config.php';
use Workerman\Worker;
use tpstudy\lib\plus\channel\Channel_server;
use tpstudy\lib\plus\http\Http_pusher;
use tpstudy\lib\plus\websocket\Ws_pusher;
use tpstudy\lib\plus\glob\Glob_server;
$channel = new Channel_server();
//$http = new Http_pusher($http_domain . ":" . $http_port);
//$http->count = 1;
$websocket = new Ws_pusher($ws_domain . ":" . $websocket_port);
$websocket->count = 1;
//$glob = new Glob_server();
Worker::runAll();
PHP
1
https://gitee.com/whylwz/tpstudy.git
git@gitee.com:whylwz/tpstudy.git
whylwz
tpstudy
tpstudy
master

搜索帮助