mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-23 19:43:09 +00:00
add message type
This commit is contained in:
@@ -21,7 +21,8 @@ if MODE == "agent" then
|
||||
print("--------------")
|
||||
end
|
||||
|
||||
function handle.message(id, msg)
|
||||
function handle.message(id, msg, msg_type)
|
||||
assert(msg_type == "binary" or msg_type == "text")
|
||||
websocket.write(id, msg)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user