// call when client close connection static void ConnectionClosed(Connection connection) { Unity.Console.DebugLog("Connection closed"); if (!OnConnectionClosed.IsNull()) { OnConnectionClosed(connection); } }