What is the differents between two ways to createMatch?

Hi,there. When reading the related documents about create match in nakama, I find that I can use socket.createMatch() and rpcCreateMatch() to create a new match. Sorry for I know little about nakama, and I want to know the differences between two ways, and whether they are used in different situations?

Thanks for any suggestions.

Hi @lcy19,

You would call socket.createMatch() from the client to create a Client Relayed Match and instead call an RPC to create the match when you want a Server Authoritative Match.

For an overview of the two approaches please see the links above and also check out the Multiplayer Concepts documentation.

I hope this helps.

1 Like

thanks for your reply! :slight_smile:

1 Like