-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OneBotDocking监听改名:onClientClose=>onClientDisconnect
- Loading branch information
1 parent
348e8a2
commit 8b1c318
Showing
3 changed files
with
12 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,12 @@ | ||
# TMBot Release Note | ||
|
||
#### Version 1.0.2 | ||
#### Version 1.0.4 | ||
|
||
## 更新描述:无 | ||
|
||
## 修复Bug | ||
|
||
1. 修复因为更换ws库的原因造成旧代码的重连bug | ||
|
||
## 新增特性 | ||
|
||
### | ||
|
||
1. 为底层ws客户端类添加监听onDestroy | ||
2. 为Version添加debug属性,插件可自觉判断并做出一些操作(将FileClass的debug输出给弄到这里了) | ||
|
||
*** | ||
请在你正在使用的WS实例销毁时一并结束你的插件的一切工作,Example: | ||
|
||
``` | ||
let tmp = BotDockingMgr.getBot("xxx"); | ||
let sid = setInterval(()=>{},1000); | ||
tmp.Client.events.onDestroy.on(()=>{ | ||
clearInterval(sid); | ||
}) | ||
``` | ||
|
||
*** | ||
1. OneBotDocking添加监听onClientDestroy(同 WebsocketClient.event.onDestroy) | ||
2. OneBotDocking监听改名: onClientClose => onClientDisconnect |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters