Network Connection Handler

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

Methods

  1. 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. 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. 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. 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. 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. 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. 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. 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.

Last updated