mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 12:20:41 +00:00
add module skynet.harbor
This commit is contained in:
11
test/testharborlink.lua
Normal file
11
test/testharborlink.lua
Normal file
@@ -0,0 +1,11 @@
|
||||
local skynet = require "skynet"
|
||||
local harbor = require "skynet.harbor"
|
||||
|
||||
skynet.start(function()
|
||||
print("wait for harbor 2")
|
||||
print("run skynet examples/config_log please")
|
||||
harbor.connect(2)
|
||||
print("harbor 2 connected")
|
||||
harbor.link(2)
|
||||
print("disconnected")
|
||||
end)
|
||||
Reference in New Issue
Block a user