> For the complete documentation index, see [llms.txt](https://reflective-roommanager.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://reflective-roommanager.gitbook.io/docs/user-manual/network/room/handlers/network-connection-handler.md).

# Network Connection Handler

This class provides a set of methods that listen for events related to network connections.

### Methods

1. ```csharp
   OnStartServer(Action callback)
   ```
   * This method is used to determine the function that will run when the network starts on the server side. This function is called when the server starts.
2. ```csharp
   OnStopServer(Action callback)
   ```
   * This method is used to determine the function that will run when the network stops on the server side. This function is called when the server stops.
3. ```csharp
   OnServerConnect(Action<NetworkConnection> callback)
   ```
   * This method is used to determine the function that will run on the server side when a client connects. This function is called when a client connects.
4. ```csharp
   OnServerDisconnect(Action<NetworkConnectionToClient> callback)
   ```
   * This method is used to determine the function that will run when a client connection is lost on the server side. This function is called when a client connection is lost.
5. ```csharp
   OnStartClient(Action callback)
   ```
   * This method is used to determine the function that will run when the network starts on the client side. This function is called when the client starts.
6. ```csharp
   OnStopClient(Action callback)
   ```
   * This method is used to determine the function that will run when the network stops on the client side. This function is called when the client stops.
7. ```csharp
   OnClientConnect(Action callback)
   ```
   * This method is used to determine the function that will run on the client side when it successfully connects to the server. This function is called when the client connects to the server.
8. ```csharp
   OnClientDisconnect(Action callback)
   ```
   * This method is used to determine the function that will run on the client side when it disconnects from the server. This function is called when the client leaves the server.
