Gateway
NebulaGateway
The one address clients connect to.
generated from the sources
Class in namespace
Nebula · Packages/com.1by3.nebula/Runtime/Gateway/NebulaGateway.cspublic sealed class NebulaGateway : MonoBehaviourThe one address clients connect to. It holds a link to every worker, forwards each client's inputs to whichever worker currently owns that client's entity, and fans the workers' replication streams out to the clients, de-duplicating by authority epoch so a handover is invisible to the client. Nothing here is authoritative: if the gateway dies, clients reconnect and the workers re-announce their entities.
Properties
Config
public NebulaConfig Config { get; }ControlPlane
public IControlPlane ControlPlane { get; }GatewayId
public string GatewayId { get; }ClientCount
public int ClientCount { get; }WorkerCount
public int WorkerCount { get; }EntityCount
public int EntityCount { get; }Methods
Initialize
public void Initialize(NebulaConfig config, IControlPlane controlPlane);