Module: nintendo.nex.hpp

Provides a client that performs remote method calls through HTTP.

class HppClient
The HTTP RMC client.

HppClient

def __init__(settings: Settings, game_server_id: int, nex_version: str, pid: int, password: str)
Creates a new hpp client.

def set_environment(env: str) -> None
Changes the environment. The default is "L1" (production).

async def request(protocol: int, method: int, body: bytes) -> bytes
Performs a remote method call. Blocks until the RMC is complete. Returns the body of the RMC response on success. Raises RMCError if the server returns an error code.