暂时先截断ws被断开时消息中前两字节的close code防止崩溃

This commit is contained in:
MrZ626
2021-06-08 07:19:18 +08:00
parent 4752c5ad2d
commit 4ae14b6c73

View File

@@ -189,7 +189,7 @@ while true do--Running
readCHN:push(op)
SOCK:close()
if type(res)=='string'then
readCHN:push(res)--Warning: with 2 bytes close code
readCHN:push(res:sub(3))--Warning: with 2 bytes close code
else
readCHN:push("WS Error")
end