Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

客户端发布消息是报错 #1

Open
koiding opened this issue Nov 22, 2016 · 3 comments
Open

客户端发布消息是报错 #1

koiding opened this issue Nov 22, 2016 · 3 comments

Comments

@koiding
Copy link

koiding commented Nov 22, 2016

PHP Fatal error: Uncaught Error: Call to undefined method Server::redis_get() in /root/swoole_mqtt_php/swoole_server.php:88
Stack trace:
#0 /root/swoole_mqtt_php/swoole_server.php(46): Server->decode_mqtt('0\x06\x00\x04asdf', Object(swoole_server), 2)
#1 [internal function]: Server->onReceive(Object(swoole_server), 2, 0, '0\x06\x00\x04asdf')
#2 /root/swoole_mqtt_php/swoole_server.php(22): swoole_server->start()
#3 /root/swoole_mqtt_php/swoole_server.php(223): Server->__construct()
#4 {main}
thrown in /root/swoole_mqtt_php/swoole_server.php on line 88
[2016-11-22 17:53:05 *14288.0] ERROR zm_deactivate_swoole (ERROR 103): Fatal error: Uncaught Error: Call to undefined method Server::redis_get() in /root/swoole_mqtt_php/swoole_server.php:88
Stack trace:
#0 /root/swoole_mqtt_php/swoole_server.php(46): Server->decode_mqtt('0\x06\x00\x04asdf', Object(swoole_server), 2)
#1 [internal function]: Server->onReceive(Object(swoole_server), 2, 0, '0\x06\x00\x04asdf')
#2 /root/swoole_mqtt_php/swoole_server.php(22): swoole_server->start()
#3 /root/swoole_mqtt_php/swoole_server.php(223): Server->__constru
[2016-11-22 17:53:05 $14271.0] WARNING swManager_check_exit_status: worker#0 abnormal exit, status=255, signal=0

和redis有关的函数要另外装扩展吗

@xavier-chen
Copy link
Owner

redis这个可以忽略,是我自己的项目中的封装函数,你仔细看代码,就知道如何进行了。好久没有更新的项目,回头更新一下,把完整的mqtt放出来

@dawnmn
Copy link

dawnmn commented Jan 16, 2018

这个用swoole实现mqtt,感觉很不错,什么时候能够完成mqtt的主体功能呢

@zerovszero
Copy link

请问您什么时候把mqtt整体放出来?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants