Browse Source

add:增加多点登录被踢下线的client的client-banned回调

adam 4 years ago
parent
commit
7c16efa81f
1 changed files with 8 additions and 0 deletions
  1. 8
    0
      AgoraRTCSDK.min.js

+ 8
- 0
AgoraRTCSDK.min.js View File

@@ -9401,6 +9401,14 @@ function(e, t) {
9401 9401
 						default.debug("[".concat(b.clientId, "] quit gateway")), b.state = S, b.socket.close(), O()) : "recover" === e && A()
9402 9402
             },
9403 9403
             b.socket.on("on_notification", function(e) {
9404
+              if(e.detail === "ERR_REPEAT_JOIN") {
9405
+                var t = l({
9406
+                  type: "client-banned",
9407
+                  uid: e.uid,
9408
+                  attr: "onMultiIP"
9409
+                });
9410
+                b.dispatchEvent(t)
9411
+              }
9404 9412
 							if (o.
9405 9413
 						default.debug("[".concat(b.clientId, "] Receive notification: "), e), "ERR_JOIN_BY_MULTI_IP" === I.GatewayErrorCode[e.code]) {
9406 9414
 							return b.dispatchEvent({