Table of Contents

Enum SessionEventKind

Namespace
Typhon.Engine
Assembly
Typhon.Engine.dll

What happened to a session.

public enum SessionEventKind : byte

Fields

Closed = 2

A session ended, for the reason it carries.

Degraded = 4

A session moved on the degrade ladder: it could not keep up and is now served every 2nd or 4th tick, or it recovered. DegradeLevel carries the level it moved to — 1 or 2 when it fell, 0 when it is back to every tick.

The engine's own response is mechanical — fewer frames. The application is the party that can do better: shrink the player's interest so each frame is smaller, drop optional streams, tell the player the connection is struggling. One event per step, in either direction, never one per tick spent there.

Opened = 1

A client was admitted. The role, limits and application data admission handed back travel with it.

RealmClosed = 5

The realm the session was in was unregistered and removed: the session is in None now, and Realm names the realm that went away.

The session is still open. A realm going away is not a reason to drop the client that was watching it — an instance closing under a party is ordinary, and the application decides where they go next (12-realms § 1.6, Q7). Its client has already been told the same thing the only way a client can be: the frame of the tick this was produced in is a RESET whose REALM block is NONE, so its store is empty and it holds nothing. Until the application places it somewhere it is served events only.

Delivered once per realm a session loses, not once per tick it spends in none afterwards.

ResumeExpired = 3

A resumable session's grace period elapsed without the client coming back. Built with resume, in a later phase.