rlightning.env.remote_env

class rlightning.env.remote_env.RemoteEnvClient(env: BaseEnv, hostname: str, port: int)[source]

Bases: object

ZMQ client that proxies commands to a local environment.

close() None[source]

Close the connection to the env server.

connect() None[source]

Connect to the remote env server.

reset(*args: Any, **kwargs: Any) EnvRet[source]

Placeholder reset (handled by resolve_command).

resolve_command(message: Dict[str, Any]) Dict[str, Any][source]

Execute a command and return a response payload.

run() None[source]

Run the client loop to service remote commands.

step(*args: Any, **kwargs: Any) EnvRet[source]

Placeholder step (handled by resolve_command).

waiting_response(block: bool = True) bytes[source]

Wait for a response from the server.

Submodules