demo's People
Forkers
windrunner414 feng409 lienze741 orchief luogan129 chjw8016 xianjie2017 zhangsanfeel gaodevops tjloved yunhe1992 nackman uniteweiwei diycp liuhongxu123 alawnchen 2015phper dongdx ljphalen lianchengtong ascenddai legeng shuyabin mattqiu zqingc snym hrbxb runstp litianyinglty hekuntong w463022633 renyuxiong alvinor shencongcong fujiajun21 gutops qingzhong110 sth4me 865826021 chenjing0521 willove sapphirell xianghuawe yudachuan zclgni qinyunqing ndj888 dove0012 hecomlilong luishou shenzm85 hanwenbo aspire17 gnpok catayi lll1895644 selfgod amrzteb xjc2xjc netstao qiuguanyou icehan2016 mrkagod kissice zhuchuanjun lastares tioncico cvi1 sylnkk 786572258 yangyang0910 yzmcoder xuhong- jukzthebest uhaikuo vvphp henry0519 jkluo siw114 figo5418 codeking-888 luischerry gaojunhua xiaojiubei f57 springsunny longlovehehe tanjianling binky1017 yaphats zilinshi guolan yuanlj-tea flyyi honeypig chennuo12356 phpth foreverzjz 1421883116 xiaobaiskilldemo's Issues
大兄弟 这两行应该不对吧
tp 数据库操作
function static frameInitialize()
{
// 获得数据库配置
$dbConf = Config::getInstance()->getConf('database');
// 全局初始化
Db::setConfig($dbConf);
}
为啥这样使用tp 数据库操作不会有协程问题?,没看见代码在哪处理了?
安装demo命令错了
php vendor/bin/easyswoole install
改为sh vendor/bin/easyswoole install
即可。
缺失文件?
关于魔术方法的问题
为什么在demo中的UserBean不使用__get与__set魔术方法而是使用写死的get(set)+属性名这种方式,仅仅只是考虑效率的原因,还是将来会加入set/get的注解?
DEMO:Chat,Error 522
如题
异步保存聊天信息
ChatMessage中使用了单例模式,由于swoole 是常驻进程,当ChatMessage实例化后,storage 属性会一直是同一个值,createStorage()这个方法就没有什么多大的意义了。在聊天室的demo 中,作者特别喜欢使用单例模式,个人觉得单例模式有优点也有缺点,不必用太多。。
启用心跳检测 不起作用
开启了心跳检测,但是close一直没有日志输出
$subPort->set(
[
'open_eof_check' => true, //打开EOF检测
'package_eof' => '##', //设置EOF
'open_eof_split' => true,
'heartbeat_idle_time' => 60,
'heartbeat_check_interval' => 6,
]
);
运行 3.x-chat 报错不知道哪里弄错了
报错信息
[FatalError][file:/var/www/html/chat-demo/demo/vendor/easyswoole/easyswoole/src/Core.php][line:273]Uncaught TypeError: Argument 2 passed to EasySwoole\EasySwoole\Core::EasySwoole\EasySwoole{closure}() must be an instance of Swoole\Server\Task, integer given in /var/www/html/chat-demo/demo/vendor/easyswoole/easyswoole/src/Core.php:273
Stack trace:
#0 [internal function]: EasySwoole\EasySwoole\Core->EasySwoole\EasySwoole{closure}(Object(Swoole\WebSocket\Server), 16, 5, Object(App\Task\BroadcastTask))
#1 /var/www/html/chat-demo/demo/vendor/easyswoole/easyswoole/src/ServerManager.php(109): Swoole\Server->start()
#2 /var/www/html/chat-demo/demo/vendor/easyswoole/easyswoole/src/Core.php(136): EasySwoole\EasySwoole\ServerManager->start()
#3 /var/www/html/chat-demo/demo/vendor/easyswoole/easyswoole/src/Command/DefaultCommand/Start.php(98): EasySwoole\EasySwoole\Core->start()
#4 /var/www/html/chat-demo/demo/vendor/easyswoole/easyswoole/src/Command/CommandContainer.php(44): EasySwoole\EasySwoole\Command\DefaultCommand\Start->exec(Array)
#5 /var/www/html/chat-demo/demo/vendor/easyswoole/easyswoole/src/Command/Comma
chat-demo是不是还没有啊
我按照流程操作下来,出现了这个问题。请问如何解决。
启动时有个报错
3.x-excel-Demo建议
demo使用的这个phpoffice/phpexcel库,已经停止维护了,迁移到新的项目了,建议换成新的项目composer包.
ORM初始化自动创建连接池吗
运行起来后需要登录?
Fatal error: Namespace
Fatal error: Namespace declaration statement has to be the very first statement or after any declare call in the script in /www/wwwroot/bgx/demo/vendor/bin/easyswoole on line 13
demo下载下来之后报错
php版本:7.1.8
swoole版本4.2.7
git clone https://github.com/easy-swoole/demo.git 之后,进入目录,执行composer install加载依赖
然后运行 php easyswoole start
出现报错
yi已修改.env的数据库配置,无效果
做自定义路由的时候,进行版本控制,post方式无法接收参数,get可以
安装时遇到提示是否覆盖 EasySwooleEvent.php 请选择否 (输入 n 回车)
应该全选n
分布式rpc什么时候上demo版本呢
分布式rpc什么时候上demo版本呢
运行有问题,可以尝试下面操作
你好,你的这个类现在好像还没更新吧
热重载,修改文件后,报错Swoole\Coroutine\Channel::push(): must be called in the coroutine.
使用热重载,修改文件后,报错
PHP Fatal error: Swoole\Coroutine\Channel::push(): must be called in the coroutine. in /var/html/demo/vendor/easyswoole/http/src/Dispatcher.php on line 238
Fatal error: Swoole\Coroutine\Channel::push(): must be called in the coroutine. in /var/html/demo/vendor/easyswoole/http/src/Dispatcher.php on line 238
Error at file[/var/html/demo/vendor/easyswoole/http/src/Dispatcher.php] line[238] message:[Swoole\Coroutine\Channel::push(): must be called in the coroutine.]
PHP Fatal error: Swoole\Coroutine\Channel::push(): must be called in the coroutine. in /var/html/demo/vendor/easyswoole/http/src/Dispatcher.php on line 238
Fatal error: Swoole\Coroutine\Channel::push(): must be called in the coroutine. in /var/html/demo/vendor/easyswoole/http/src/Dispatcher.php on line 238
Error at file[/var/html/demo/vendor/easyswoole/http/src/Dispatcher.php] line[238] message:[Swoole\Coroutine\Channel::push(): must be called in the coroutine.]
Config.php设置为ws模式之后,http请求全部405(不允许)
还是报错,未定义变量
还是报错,未定义变量
Originally posted by @uniteweiwei in https://github.com/easy-swoole/demo/issue_comments#issuecomment-438501867
搞半天是可以运行了...不过该如何用守护进程运行 而不挂在cli进程运行?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.