mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-23 19:43:09 +00:00
Fix Issue #67
This commit is contained in:
@@ -3,7 +3,7 @@ local client = ...
|
||||
|
||||
skynet.register_protocol {
|
||||
name = "client",
|
||||
id = 3,
|
||||
id = skynet.PTYPE_CLIENT,
|
||||
pack = function(...) return ... end,
|
||||
unpack = skynet.tostring,
|
||||
dispatch = function (session, address, text)
|
||||
|
||||
@@ -13,7 +13,7 @@ end
|
||||
|
||||
skynet.register_protocol {
|
||||
name = "client",
|
||||
id = 3,
|
||||
id = skynet.PTYPE_CLIENT,
|
||||
pack = function(...) return ... end,
|
||||
unpack = function(msg,sz)
|
||||
if sz == 0 then
|
||||
|
||||
@@ -37,7 +37,7 @@ end
|
||||
|
||||
skynet.register_protocol {
|
||||
name = "client",
|
||||
id = 3,
|
||||
id = skynet.PTYPE_CLIENT,
|
||||
}
|
||||
|
||||
skynet.start(function()
|
||||
|
||||
Reference in New Issue
Block a user