mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 12:20:41 +00:00
remove broker and add group command
This commit is contained in:
@@ -5,7 +5,8 @@ skynet.dispatch()
|
||||
skynet.start(function()
|
||||
local group = skynet.query_group(1)
|
||||
for i=1,10 do
|
||||
skynet.newservice("testgroup_c", tostring(i))
|
||||
local address = skynet.newservice("testgroup_c", tostring(i))
|
||||
skynet.enter_group(1 , address)
|
||||
end
|
||||
skynet.send(group,"Hello World")
|
||||
skynet.exit()
|
||||
|
||||
Reference in New Issue
Block a user