Skip to content

OnClientDisconnected

Usage

  • No return behavior

Example Autogenerated

csharp
private void OnClientDisconnected( Connection cn, string strReason )
{
    Puts( "OnClientDisconnected works!" );
}

Location

  • Network.Server::OnDisconnected(string strReason, Network.Connection cn)
csharp
//---
	cn.active = false;
	if (this.callbackHandler != null)
	{
		this.callbackHandler.OnDisconnected(strReason, cn);
	}
	Interface.CallHook("OnClientDisconnected", cn, strReason);
	this.RemoveConnection(cn);
}

Released under the MIT License.