Pārlūkot izejas kodu

修改客户端协议推送

neo 1 gadu atpakaļ
vecāks
revīzija
bc4f744d36

+ 1 - 1
common/core/agentPool.lua

@@ -95,7 +95,7 @@ function root:unbind_agent(id, addr)
95 95
     agentInfo.unbindTime = skynet_time()
96 96
 
97 97
     -- 回收不活跃agent服务
98
-    self:recycle()
98
+    self:recycle_agent_service()
99 99
     return true
100 100
 end
101 101
 

+ 2 - 2
nodes/gate/service/wsSprotoWatchdog.lua

@@ -98,7 +98,7 @@ local function l_response_auth(fd, response, errCode)
98 98
 	if not rs then
99 99
 		return
100 100
 	end
101
-	skynet.send(gate, "lua", "response", fd, rs)
101
+	skynet.send(gate, "lua", "send_to_client", fd, rs)
102 102
 end
103 103
 -- 创建链接
104 104
 local function l_build_connection(uid, fd, response)
@@ -136,7 +136,7 @@ local function l_notify_server_code(fd, errCode)
136 136
 	if not rs then
137 137
 		return
138 138
 	end
139
-	skynet.send(gate, "lua", "response", fd, rs)
139
+	skynet.send(gate, "lua", "send_to_client", fd, rs)
140 140
 end
141 141
 
142 142
 function SOCKET.data(fd, msg, size)