Skip to content

Commit

Permalink
更新测试文件
Browse files Browse the repository at this point in the history
  • Loading branch information
CandyMi committed Oct 30, 2019
1 parent 13b5d3c commit 0a97e12
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion testmain.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ skynet.start(function()
local server = socket.listen("0.0.0.0", 8000, 128)
socket.start(server, function(id, ipaddr)
local wss = wsserver:new {
fd = id, cls = ws
fd = id, cls = ws, nodelay = true
}
return wss:start()
end)
Expand Down
1 change: 1 addition & 0 deletions ws.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ local ws = class("ws")

function ws:ctor (opt)
self.ws = opt.ws -- websocket对象
self.headers = opt.headers -- http headers
self.send_masked = false -- 掩码(默认为false, 不建议修改或者使用)
self.max_payload_len = 65535 -- 最大有效载荷长度(默认为65535, 不建议修改或者使用)
end
Expand Down

0 comments on commit 0a97e12

Please sign in to comment.