修改可能导致ws尝试发送数字消息然后报错的一处代码
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user