Commit 538a1837 by 吴云建

添加xim退出

parent 71626bbb
Showing with 4 additions and 0 deletions
...@@ -42,6 +42,10 @@ class Chat { ...@@ -42,6 +42,10 @@ class Chat {
return this.initChatSdk(option.webSocketUri); return this.initChatSdk(option.webSocketUri);
} }
public unSetup() {
xim.close();
}
public getSdk = () => { public getSdk = () => {
if (this._sdk == null) { if (this._sdk == null) {
throw new Error("sdk shouldn't undefined"); throw new Error("sdk shouldn't undefined");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment