Interface IApprovalRpcCommand
An interface which can be used to implement RPCs for use in the connection approval flow.
Only IApprovalRpcCommand commands are allowed to be sent and received, while in
Handshake and/or Approval states.
Connection approval can be optionally required for all incoming connection on a server. The connection flow
can only proceed when the server received an Approval RPC payload which it can validate.
Approval tokens are game-specific, thus netcode expects user-code to add an ConnectionApproved
to the connection entity, once a valid IApprovalRpcCommand has been received by the server.
Namespace: Unity.NetCode
Assembly: Unity.NetCode.dll
Syntax
public interface IApprovalRpcCommand : IComponentData, IQueryTypeParameter