修改可能导致ws尝试发送数字消息然后报错的一处代码

This commit is contained in:
MrZ626
2021-04-12 21:38:20 +08:00
parent 53dde3ec9e
commit 0645cec207
2 changed files with 3 additions and 3 deletions

View File

@@ -86,9 +86,9 @@ local _send do
local mask_key={1,14,5,14}
local mask_str=char(unpack(mask_key))
function _send(opcode,message)
function _send(op,message)
--Message type
SOCK:send(char(bor(0x80,opcode)))
SOCK:send(char(bor(0x80,op)))
if message then
--Length