I couldn't find Lua reference to create a Match (not a matchmaker) , i used the javascript api as refence .
To Create Match in js you have to use
var response = await socket.createMatch();
console.log("Created match with ID:", response.match.match_id);
You can share the match id with other players to join .
i want to do the same thing using Defold and Lua .
if i am not mistaken , the same should be in Lua :
local match_create_message = {
match_create = {} -- empty , no arguments
}
local match_result = nakama.socket_send(socket, match_create_message,callback)
Note :
A list with supported messages / arguments by nakama.socket_send() will be very helpful in these cases , the official documentation only covers creating a channel_join massage type example .
I couldn't find Lua reference to create a Match (not a matchmaker) , i used the javascript api as refence . To Create Match in js you have to use
You can share the match id with other players to join . i want to do the same thing using Defold and Lua . if i am not mistaken , the same should be in Lua :
This caused the server to disconnect with :
after decoding the data
Note : A list with supported messages / arguments by
nakama.socket_send()
will be very helpful in these cases , the official documentation only covers creating achannel_join
massage type example .