Skip to content

Commit

Permalink
docs: how to make wechat mini program runnable (#1885)
Browse files Browse the repository at this point in the history
  • Loading branch information
timzaak committed Jun 11, 2024
1 parent 82a4b79 commit 8d5936e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -897,8 +897,11 @@ const client = connect('mqtt:https://test.mosquitto.org')
Supports [WeChat Mini Program](https://mp.weixin.qq.com/). Use the `wxs` protocol. See [the WeChat docs](https://mp.weixin.qq.com/debug/wxadoc/dev/api/network-socket.html).

```js
import 'abortcontroller-polyfill/dist/abortcontroller-polyfill-only' // import before mqtt.
const mqtt = require("mqtt");
const client = mqtt.connect("wxs:https://test.mosquitto.org");
const client = mqtt.connect("wxs:https://test.mosquitto.org", {
timerVariant: 'native' // more info ref issue: #1797
});
```

### Ali Mini Program
Expand Down

0 comments on commit 8d5936e

Please sign in to comment.