OnSessionJoinInServer
public JoinChannelEventHandler OnSessionJoinInServer;
Argument
Value | Type | Description |
---|---|---|
args | JoinChannelEventArgs | Success/failure status of connection to the in-game server |
JoinChannelEventArgs
Value | Type | Description |
---|---|---|
ErrInfo | ErrorInfo | Error information |
SessionInfo | SessionInfo | Information on the connection session |
Description
This event is called when the connection to the in-game server succeeds/fails.
- To connect to the in-game server, the event must be called as success.
In order for an event to be called, the message sending/receiving method must be called.
Example
Backend.Match.OnSessionJoinInServer += (args) => {
// TODO
};
Argument cases
When connection to the in-game server is established ErrInfo : ErrorInfo.Success
When connection to the in-game server fails ErrInfo.Category : ErrorCode.Exception ErrInfo.Reason : reason for connection failure
When you reconnect to the in-game server ErrInfo.Category : ErrorCode.Success ErrInfo.Detail : ErrorCode.NetworkOnline ErrInfo.Reason : Reconnect Success
When the reconnection is attempted in an abnormal way or the reconnection fails because there is a record of a previous session connection in the server ErrInfo : ErrorCode.AuthenticationFailed Reason : Invalid rars operation(0).