Nebula
Gateway

NebulaGateway

The one address clients connect to.

generated from the sources
public sealed class NebulaGateway : MonoBehaviour

The 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);

On this page