Skip to main content
Version: 5.11.8

JoinMatchMakingServer

public bool JoinMatchMakingServer(out ErrorInfo errorInfo);

Parameter

ValueTypeDescription
errorInfoErrorInfoSuccess/failure information

Description

Attempts to connect to the matching server.

  • The fact that the matching server connection method returns true means the server is connected to the socket; it does not mean that the server connection was successful.
  • Actual server connection is established after user authentication is completed in the matching server, and the success/failure of connection to the matching server can be checked via the OnJoinMatchMakingServer event.

Example

ErrorInfo errorInfo;
Backend.Match.JoinMatchMakingServer(out errorInfo);

Return cases

Success cases

When connection between the matching server and the socket is successful true errorInfo : ErrorInfo.Success

Error cases

When connection to the matching server fails false errorInfo.Category : ErrorCode.Exception errorInfo.Reason : "reason"

When connection between the matching server and the socket fails false errorInfo.Category : ErrorCode.SocketOperationError errorInfo.SocketError : type of socket error that occurred errorInfo.Reason : "reason"