Module: nintendo.nex.backend
Provides a client for game servers.
class BackEndClient
The game server client.
async with connect(settings: Settings, host: str, port: int) -> BackEndClient
Establishes a connection with the authentication server at the given address. Blocks until the connection is ready.
BackEndClient
auth_client: RMCClient
The RMC client that is connected to the authentication server.
async with login(username: str, password: str = None, auth_info: Data = None, servers: list[object] = []) -> RMCClient
Requests a ticket from the authentication server and establishes a connection with the secure server. The returned RMC client can be used to call methods on the secure server. servers must be a list of protocol server objects that should be defined in an external protocol file. These servers are registered on the secure client.
async with login_guest() -> RMCClient
Logs in as guest. On most servers the guest account is disabled.