This page refers to WildRune.LCU class. It is responsible for communication with League Client Update.

Properties

readonly bool IsConnected

Represents whether there is an active connection to the API.

readonly GameflowPhase? CurrentGameflowPhase

Represents current GameflowPhase fetched from GET /lol-gameflow/v1/gameflow-phase. It is updated automatically and when it changes, OnGameflowPhaseChanged is invoked. Can be null if client is not connected.

readonly Summoner? LocalSummoner

Represents currently logged summoner info fetched from GET /lol-summoner/v1/current-summoner. Updates automatically and any change invokes OnLocalSummonerInfoChanged. Can be null if client is not connected.

bool PreserveSubscriptions

default is true

Whether subscriptions should be preserved on disconnection. true means they stay unchanged and they will get invoked back after reconnecting; false means all of them are cleared when connection is lost no matter what caused it.

bool WriteAllEventsToConsole

default is false

Whether all incoming WebSocket events should be printed to the console. They will be printed in raw version.

bool WriteAllEventsToTrace

default is false

Whether all incoming WebSocket events should be printed to the trace. They will be printed in raw version.

Methods

void TryConnect