From 11433d0f47eae3403e883fc26d72269b930235f2 Mon Sep 17 00:00:00 2001
From: guoshilong <123456>
Date: Mon, 11 Sep 2023 16:51:20 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/develop' into develop

---
 src/mqtt/index.ts |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/src/mqtt/index.ts b/src/mqtt/index.ts
index f6570df..2028edc 100644
--- a/src/mqtt/index.ts
+++ b/src/mqtt/index.ts
@@ -34,10 +34,13 @@
       ...OPTIONS,
       ...this._options,
     })
+    console.log(this._client, 'client')
     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)
 

--
Gitblit v1.9.3