let a = this._enPackage(t, i, e)
, r = { msgId: e,ata: new Uint8Array(a.buffer)};
this.ws.send(r.data.buffer)
//e是 要请求的原始 对象,
//t是 一个函数 应该是 一个new 对象的函数 , 在下面
//i应该是 一个 操作 路由指令,
_enPackage(e, t, i) {
let a = null
, r = 0;
if (t) {
let i = t.create(e);
a = t.encode(i).finish(),
r = a.length
}
let n = 5 + r
, o = new DataView(new ArrayBuffer(6 + n));
if (o.setUint16(0, R.CliGgProto.MessageID.CLI_GG_GS_MSG, !1),
o.setUint16(2, n, !1),
o.setUint8(4, 0),
o.setUint8(5, 0),
o.setUint8(6, 0),
o.setUint16(7, i, !1),
o.setUint16(9, r, !1),
r > 0)
for (let e = 0; e < r; e++)
o.setInt8(e + 5 + 6, a[e]);
return o
}
// 这是我打印的 上面的t
function e(e) {
if (this.itemlist = [],
e)
for (var t = Object.keys(e), n = 0; n < t.length; ++n)
null != e[t[n]] && (this[t[n]] = e[t[n]])
}
//t.encode(i).finish(),
e.encode = function(e, t) {
return t || (t = l.create()),
null != e.packInfo && Object.hasOwnProperty.call(e, "packInfo") && t.uint32(10).string(e.packInfo),
null != e.userType && Object.hasOwnProperty.call(e, "userType") && t.uint32(18).string(e.userType),
null != e.areaName && Object.hasOwnProperty.call(e, "areaName") && t.uint32(26).string(e.areaName),
null != e.deviceId && Object.hasOwnProperty.call(e, "deviceId") && t.uint32(34).string(e.deviceId),
null != e.clientverison && Object.hasOwnProperty.call(e, "clientverison") && t.uint32(40).int32(e.clientverison),
null != e.invitePlayerId && Object.hasOwnProperty.call(e, "invitePlayerId") && t.uint32(50).string(e.invitePlayerId),
null != e.channelName && Object.hasOwnProperty.call(e, "channelName") && t.uint32(58).string(e.channelName),
t
}