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

微信小程序中使用 MQTT 协议 | Visoar #4

Open
visoar opened this issue Jan 2, 2020 · 0 comments
Open

微信小程序中使用 MQTT 协议 | Visoar #4

visoar opened this issue Jan 2, 2020 · 0 comments

Comments

@visoar
Copy link
Owner

visoar commented Jan 2, 2020

https://visoar.top/post/wei-xin-xiao-cheng-xu-zhong-shi-yong-mqtt-xie-yi/

由于小程序的限制,仅允许备案域名通过加密协议连接(https 和 wss)。
刚好,MQTT 的是可以基于 wss 来传输的,所以,在小程序中连接 MQTT 需就可以通过 MQTT over wss 的方式实现。

开源库
目前支持 MQT...

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

No branches or pull requests

1 participant