Skip to content

Latest commit

 

History

History
60 lines (50 loc) · 1.83 KB

reconnect-system.md

File metadata and controls

60 lines (50 loc) · 1.83 KB

Reconnect System in Unity Multiplayer

Network disconnections are common in multiplayer games, especially on mobile devices where players can switch between Wi-Fi and mobile data or temporarily lose connectivity.

A reconnect system allows a multiplayer game to detect a disconnected player, preserve the appropriate game state, and restore the player's session when the connection becomes available again.

For turn-based board games, reconnect support is particularly useful because a match may continue for several minutes while players are taking turns.

Table of Contents


What Is a Reconnect System?

A reconnect system defines what happens when a player's network connection is lost and the player attempts to return to the same multiplayer session.

A basic flow is:

Player Connected
      │
      ▼
Network Connection Lost
      │
      ▼
Player Marked Disconnected
      │
      ▼
Reconnect Attempt
      │
      ▼
Player Identified
      │
      ▼
Game State Restored
      │
      ▼
Player Continues Match