P
Size: a a a
P
DP
DM
DP
DM
DP
DM
A
zapysk:
engineWSS.joinRoom()
k.prototype.joinRoom = function() {
if(!m.joinRoom()) setInterval(() => m.joinRoom(), 2500)
return 'success_payload'
}
m.joinRoom = _.prototype.joinRoom = function () {
return this.modules.call(JOIN_ROOM, function (t) {
console.log(t) // vivodit otvet v konsol
}, this.chat_args.name, this.chat_args.userData, this.chat_args.localData.dataKey)
}
ws.prototype.call = function(e, n) {
void 0 === n && (n = null);
for (var i = [], r = 2; r < arguments.length; r++)
i[r - 2] = arguments[r];
if (!this.isConnected && this.socket._readyState == 0)
return false
ws.id++;
var o = {
id: ws.id,
name: e
};
i.length && (o.args = i),
this.a[ws.id] = n;
return this.socket.send(JSON.stringify(o))
}
// событие на получение ответа с ws либы
this.handleMessage = function(e) {
var n = JSON.parse(e.data);
if (n.type && void 0 !== n.body)
return 'type.event';
if (n.id > 0) {
var r = n;
if (r.error)
return 'n.error';
var o = t.a[r.id];
"function" == typeof o && (delete a[r.id], o.call(null, r.result))
}
}
SN
zapysk:
engineWSS.joinRoom()
k.prototype.joinRoom = function() {
if(!m.joinRoom()) setInterval(() => m.joinRoom(), 2500)
return 'success_payload'
}
m.joinRoom = _.prototype.joinRoom = function () {
return this.modules.call(JOIN_ROOM, function (t) {
console.log(t) // vivodit otvet v konsol
}, this.chat_args.name, this.chat_args.userData, this.chat_args.localData.dataKey)
}
ws.prototype.call = function(e, n) {
void 0 === n && (n = null);
for (var i = [], r = 2; r < arguments.length; r++)
i[r - 2] = arguments[r];
if (!this.isConnected && this.socket._readyState == 0)
return false
ws.id++;
var o = {
id: ws.id,
name: e
};
i.length && (o.args = i),
this.a[ws.id] = n;
return this.socket.send(JSON.stringify(o))
}
// событие на получение ответа с ws либы
this.handleMessage = function(e) {
var n = JSON.parse(e.data);
if (n.type && void 0 !== n.body)
return 'type.event';
if (n.id > 0) {
var r = n;
if (r.error)
return 'n.error';
var o = t.a[r.id];
"function" == typeof o && (delete a[r.id], o.call(null, r.result))
}
}
A
VL
DA
VL
5
DM
VS
1
VL