Skip to content

Commit fdd2a37

Browse files
committed
删除空回调 使用元表
1 parent 0035104 commit fdd2a37

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

websocket.lua

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,6 @@ function _M.new(host, port, path)
5858
_frame = "",
5959
status = STATUS.TCPOPENING,
6060
socket = socket.tcp(),
61-
onopen = _callback,
62-
onmessage = _callback,
63-
onerror = _callback,
64-
onclose = _callback,
6561
}
6662
m.socket:settimeout(0)
6763
m.socket:connect(host, port)

0 commit comments

Comments
 (0)