husq
2023-09-27 2c2bc8614c8ea0ce386369eb4924da1e6aa052d1
src/mqtt/index.ts
@@ -37,7 +37,9 @@
    this._hasInit = true
    if (this._client) {
      this._client.on('reconnect', this._onReconnect)
      this._client.on('connect', () => {
        console.log('connect')
      })
      // 消息监听
      this._client.on('message', this._onMessage)