mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-23 19:43:09 +00:00
rewrite makefile, and remove luacode cache.
This commit is contained in:
8
examples/globallog.lua
Normal file
8
examples/globallog.lua
Normal file
@@ -0,0 +1,8 @@
|
||||
local skynet = require "skynet"
|
||||
|
||||
skynet.start(function()
|
||||
skynet.dispatch("text", function(session, address, text)
|
||||
print("[GLOBALLOG]", skynet.address(address),text)
|
||||
end)
|
||||
skynet.register "LOG"
|
||||
end)
|
||||
Reference in New Issue
Block a user