diff --git a/nakama/engine/test.lua b/nakama/engine/test.lua index 3914978..0ebbf55 100644 --- a/nakama/engine/test.lua +++ b/nakama/engine/test.lua @@ -67,10 +67,9 @@ function M.socket_connect(socket, callback) callback(result) end -function M.socket_send(socket, message, callback) +function M.socket_send(socket, message) table.insert(socket_send_queue, message) - local result = {} - callback(result) + callback({}) end diff --git a/nakama/socket.lua b/nakama/socket.lua index fdf59b4..0bb13ad 100644 --- a/nakama/socket.lua +++ b/nakama/socket.lua @@ -35,7 +35,7 @@ local function socket_send(socket, message, callback) socket.engine.socket_send(socket, message) else socket.engine.socket_send(socket, message) - callback(true) + callback({}) end else return async(function(done) @@ -44,7 +44,7 @@ local function socket_send(socket, message, callback) socket.engine.socket_send(socket, message) else socket.engine.socket_send(socket, message) - done(true) + done({}) end end) end