foliko 1.0.32 → 1.0.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/plugins/feishu-plugin.js +12 -0
package/package.json
CHANGED
package/plugins/feishu-plugin.js
CHANGED
|
@@ -573,12 +573,24 @@ module.exports = function(Plugin) {
|
|
|
573
573
|
*/
|
|
574
574
|
stopClient() {
|
|
575
575
|
if (this._wsClient) {
|
|
576
|
+
try {
|
|
577
|
+
this._wsClient.close()
|
|
578
|
+
} catch (e) {
|
|
579
|
+
// ignore close error
|
|
580
|
+
}
|
|
576
581
|
this._wsClient = null
|
|
577
582
|
this._client = null
|
|
578
583
|
console.log('[Feishu] Client stopped')
|
|
579
584
|
}
|
|
580
585
|
}
|
|
581
586
|
|
|
587
|
+
/**
|
|
588
|
+
* 停止插件(实现 PluginManager 接口)
|
|
589
|
+
*/
|
|
590
|
+
stop() {
|
|
591
|
+
this.stopClient()
|
|
592
|
+
}
|
|
593
|
+
|
|
582
594
|
reload(framework) {
|
|
583
595
|
this._framework = framework
|
|
584
596
|
this._initialized = false
|