From 2c2bc8614c8ea0ce386369eb4924da1e6aa052d1 Mon Sep 17 00:00:00 2001
From: husq <931347610@qq.com>
Date: Wed, 27 Sep 2023 09:35:57 +0800
Subject: [PATCH] 添加环境配置区分

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

diff --git a/src/mqtt/index.ts b/src/mqtt/index.ts
index f6570df..6b5eee4 100644
--- a/src/mqtt/index.ts
+++ b/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)
 

--
Gitblit v1.9.3