Skip to content

Commit

Permalink
删除空回调 使用元表
Browse files Browse the repository at this point in the history
  • Loading branch information
flaribbit committed Apr 19, 2021
1 parent 0035104 commit fdd2a37
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions websocket.lua
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,6 @@ function _M.new(host, port, path)
_frame = "",
status = STATUS.TCPOPENING,
socket = socket.tcp(),
onopen = _callback,
onmessage = _callback,
onerror = _callback,
onclose = _callback,
}
m.socket:settimeout(0)
m.socket:connect(host, port)
Expand Down

0 comments on commit fdd2a37

Please sign in to comment.