Lua server

I wanted to create a game with a server in lua. I found an example of a server script on github - game-xoxo-nakama-server/main.lua at main · defold/game-xoxo-nakama-server · GitHub Here the function is -nk.run_once(function(ctx)
local now = os.time()
log(“Backend loaded at %d”, now)
nk.register_matchmaker_matched(make match)
end)
apparently creates a separate server instance? I don’t fully understand.
My matches are created and players connect via nakama. If I’m going to use the server only to store variables for both players and pass them to certain players upon request. I will also need to make a move counter with a timer on the server.
In the same github file tictactoe_match.ua the whole logic of creating a match is described. Will I need to do something similar too? And in general, how are the player’s requests to the lua server going? Please help me!

Hello @F1ow, have you had a look at our docs regarding authoritative matches?

wow, i check yhis. Thank you