after each call to conn.open, the listening function of onOpened will be entered, and then the onError, error type:8 will be entered
// webim.config.js
const data = {
password: "5",
username: "mushroom"
}var conn = {}
conn = new WebIM.connection({
isMultiLoginSessions: WebIM.config.isMultiLoginSessions,
https: typeof WebIM.config.https === "boolean" ? WebIM.config.https : location.protocol === "https:",
url: WebIM.config.xmppURL,
isAutoLogin: true,
heartBeatWait: WebIM.config.heartBeatWait,
autoReconnectNumMax: WebIM.config.autoReconnectNumMax,
autoReconnectInterval: WebIM.config.autoReconnectInterval,
apiUrl: WebIM.config.apiURL
});
conn.listen({
onOpened: function(message) { //
console.log(message)
},
onClosed: function(message) { console.log(message) }, //
onError: function(message) { console.log(message) }, //
};
var options = {
apiUrl: WebIM.config.apiURL,
user: data.username,
pwd: data.password,
appKey: WebIM.config.appkey,
};
conn.open(options);
network
the official document describes type:8 as "multiple login and being kicked off", but the account I logged in is newly added in the Huanxin backend, and I have tried to register and log in directly, but it doesn"t work.