Fix missing sendText on amt-redir-ws.

This commit is contained in:
jsastriawan 2020-02-10 13:23:21 -07:00
parent d1ddf2aa8f
commit 9b48645630

View File

@ -270,6 +270,8 @@ var CreateAmtRedirect = function (module, authCookie) {
}
}
obj.sendText = obj.xxSend;
obj.send = function (x) {
if (obj.socket == null || obj.connectstate != 1) return;
if (obj.protocol == 1) { obj.xxSend(String.fromCharCode(0x28, 0x00, 0x00, 0x00) + IntToStrX(obj.amtsequence++) + ShortToStrX(x.length) + x); } else { obj.xxSend(x); }