mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-22 19:13:07 +00:00
11 lines
236 B
Lua
11 lines
236 B
Lua
local skynet = require "skynet"
|
|
|
|
skynet.start(function()
|
|
local ping = skynet.newservice("pingserver")
|
|
skynet.timeout(0,function()
|
|
print(skynet.call(ping,"lua","PING","ping"))
|
|
end)
|
|
|
|
print(skynet.blockcall(ping,"lua","HELLO"))
|
|
end)
|