OnSessionOffline
public MatchInGameOfflineSessionEventHandler OnSessionOffline;
Argument
Value | Type | Description |
---|---|---|
args | MatchInGameSessionEventArgs | Information on the disconnected session |
MatchInGameSessionEventArgs
Value | Type | Description |
---|---|---|
ErrInfo | ErrorCode | Error information |
Reason | string | Error information |
GameRecord | MatchUserGameRecord | Session'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"