A
k.prototype.joinRoom = function() {
m.joinRoom()
}
_.prototype.joinRoom = async function () {
return this.modules.call(JOIN_ROOM, function (e) {
return e
}, this.chat.name, this.chat.userData, this.chat.localData.dataKey)
}
this.handleMessage = function (e) {
var n = e.data;
if (n.type && void 0 !== n.body) return void t.onEvent(n);
if (n.id > 0) {
var r = n;
if (r.error) return void window.chat.error(n);
var o = a[r.id];
"function" == typeof o && (delete a[r.id], o.call(null, r.result));
}
}
кхм а как получить из callback'a