Skip to main content
Version: 5.9.6

OnSessionOffline

public MatchInGameOfflineSessionEventHandler OnSessionOffline;

Argument

ValueTypeDescription
argsMatchInGameSessionEventArgsInformation on the disconnected session

MatchInGameSessionEventArgs

ValueTypeDescription
ErrInfoErrorCodeError information
ReasonstringError information
GameRecordMatchUserGameRecordSession's information(Session ID, nickname, battle history, etc.)

Description

This event is called when a user is disconnected from the in-game server due to an abnormal condition such as client error, poor connection, etc.

  • It is called for all clients in the game room, including disconnected clients.

In order for an event to be called, the message sending/receiving method must be called.

Example

Backend.Match.OnSessionOffline = (MatchInGameSessionEventArgs args) => {
// TODO
};

Argument cases

When a user is disconnected ErrInfo : ErrorCode.NetworkOffline Reason : "Session Disconnect" GameRecord : "information on the disconnected user"

When the server disconnects ErrInfo : ErrorCode.Exception Reason : "Disconnected from server." GameRecord : "information on the disconnected user"