composer mqtt 报错

yfgcq

composer require workerman/mqtt

Could not find a version of package workerman/mqtt matching your minimum-stability (stable). Require it with an explicit version constraint allowing its desired stability.
尝试了2台服务器 都这样

3536 10 0
10个回答

yfgcq

找到原因了
可能没有发布证书版本
composer require workerman/mqtt:dev-master

  • 暂无评论
yfgcq

但是提示:
No connection to broker

  • 暂无评论
walkor

从debug信息来看
客户端发送了CONNECT 包,正常服务端应该返回CONNACK包,但是服务端返回的是PUBACK,明显是错误的,并且客户端并没有发送PUBLISH包。

这个服务端是什么软件呢?

  • 暂无评论
yfgcq

阿里云的mq

  • 暂无评论
yfgcq

RocketMQ

  • 暂无评论
yfgcq

我看java还指定了ProducerId,这个有没用啊

  • 暂无评论
yfgcq

放在服务器上 还是报错

  • 暂无评论
walkor

目前看起来服务端返回的数据都是错的,没有按照mqtt协议完成通讯导致

  • 暂无评论
six

RocketMQ 不支持mqtt吧

  • 暂无评论
yfgcq

阿里云基础版mq好像不支持mqtt,需要另外购买

  • 暂无评论
年代过于久远,无法发表回答
🔝