This version of Unity is unsupported.
Method group is Obsolete

NetworkServerSimple.OnConnected

Obsolete The high level API classes are deprecated and will be removed in the future.

Declaration

public void OnConnected(NetworkConnection conn);

Parameters

conn The new connection object.

Description

This virtual function can be overridden to perform custom functionality for new network connections.

By default OnConnected just invokes a connect event on the new connection.

using UnityEngine;
using UnityEngine.Networking;

public abstract class ExampleScript : NetworkManager { public virtual void OnConnected(NetworkConnection conn) { conn.InvokeHandlerNoData(MsgType.Connect); } }