Nebula
Protocol

GatewayDrainingMsg

Gateway -> client: the gateway is draining and will close this link.

generated from the sources
public struct GatewayDrainingMsg

Gateway -> client: the gateway is draining and will close this link. The client reconnects (through the address it connected to, which a load balancer maps to another gateway) within ReconnectWithinSeconds, presenting its session token so the session and pawn carry over.

Fields

ReconnectWithinSeconds

public ushort ReconnectWithinSeconds;

ServerShutdown

public bool ServerShutdown;

The gateway is shutting down and knows of no other gateway to take its clients: the server as a whole is going away, or restarting. The client still reconnects on its own schedule, and reports the end as DisconnectReason.ServerShutdown rather than DisconnectReason.GatewayDraining.

Methods

Write

public void Write(NetworkWriter w);

Read

public static GatewayDrainingMsg Read(NetworkReader r);

On this page