Skip to main content
Version: 5.9.6

OnSessionJoinInServer

public JoinChannelEventHandler OnSessionJoinInServer;

Argument

ValueTypeDescription
argsJoinChannelEventArgsSuccess/failure status of connection to the in-game server

JoinChannelEventArgs

ValueTypeDescription
ErrInfoErrorInfoError information
SessionInfoSessionInfoInformation 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).