I’ll make a multiplayer turn based card game. There will be matchmaking and session server which two players connect to the same match. I found peer-to-peer connection but when host player is disconnected, match will over. I don’t want it. Actually I want that when players are matched, temporal session is created and players connect to this session and plays. I didn’t find any solution about this.
Sorry for my bad english.
Most network API’s support use of a dedicated server. That is one way of doing what you want.
For example: For each match, you start a new dedicated server instance, clients connect to this server instance. That way clients can disconnect, new clients can connect, etc, and the game is not disrupted. When the match is complete, you shut down the dedicated server instance, making the server hardware resources available again for another server instance. The management of server instances is probably a system you would have to create, unless you can find a solution already available.
1 Like