From a449b5f4b1752f10653c06ddaf410f6e6d7df5ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Fri, 19 Apr 2024 12:08:09 +0800 Subject: =?UTF-8?q?socket=E8=BF=9E=E6=8E=A5=E6=8A=8A=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E6=89=93=E5=8D=B0=E5=88=B0=E6=97=A5=E5=BF=97=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script/proto/proto.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'script/proto') diff --git a/script/proto/proto.lua b/script/proto/proto.lua index d9e3354d..dff7063d 100644 --- a/script/proto/proto.lua +++ b/script/proto/proto.lua @@ -268,6 +268,10 @@ function m.listen(mode, socketPort) return true end + function server:on_error(...) + log.error(...) + end + pub.task('loadProtoBySocket', { port = socketPort, unixPath = unixPath, -- cgit v1.2.3