emqx / emqx/emqx-docs

Correct the comments in JS SDK example

Open
#569 0 comments 0 reactions 2 assignees Claimed by @Red-Asuka View on GitHub
bug
Dominant language
HTML
Stars
174
Forks
293
Avg merge
1d 3h
Merged PRs (30d)
127

Description

File: [/zh_CN/development/javascript.md](https://docs.emqx.cn/cn/broker/latest/development/javascript.html)

```
// const mqtt = require('mqtt')
import mqtt from 'mqtt'

// 连接选项
const options = {
clean: true, // 保留回话
connectTimeout: 4000, // 超时时间
// 认证信息
clientId: 'emqx_test',
username: 'emqx_test',
password: 'emqx_test',
}
```

The comments after `clean: true` should be "true: 清除会话, false: 保留会话".

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.