HomeServer/test/testharborlink.lua
2024-11-20 15:41:37 +08:00

13 lines
320 B
Lua

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")
print("LOG =", skynet.address(harbor.queryname "LOG"))
harbor.link(2)
print("disconnected")
end)