暂时先截断ws被断开时消息中前两字节的close code防止崩溃
This commit is contained in:
@@ -189,7 +189,7 @@ while true do--Running
|
|||||||
readCHN:push(op)
|
readCHN:push(op)
|
||||||
SOCK:close()
|
SOCK:close()
|
||||||
if type(res)=='string'then
|
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
|
else
|
||||||
readCHN:push("WS Error")
|
readCHN:push("WS Error")
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user