Info¶
Runnable example
python/examples/server_info.py — calls Info.GetServerInfo once and prints the mod/engine version, platform, Wine flag, and engine/renderer host PIDs.
resoio.info.get_server_info
async
¶
Fetch the server info over a one-shot UDS connection.
Info deliberately has no client class: the version-mismatch probe
in the shared client base must read the mod version before any
client is usable, so the modality is exposed as module functions
(:func:fetch_server_info is the bare-channel form).
| PARAMETER | DESCRIPTION |
|---|---|
socket_path
|
Explicit UDS path. With
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
The
|
class:
TYPE:
|
| RAISES | DESCRIPTION |
|---|---|
GRPCError
|
The RPC failed at the transport or
server layer ( |
Source code in src/resoio/info.py
resoio.info.ServerInfo
dataclass
¶
ServerInfo(
mod_version: str,
engine_version: str,
platform: ServerPlatform,
is_wine: bool,
resonite_pid: int,
renderer_pid: int,
)
Immutable snapshot of the running mod and engine.
| ATTRIBUTE | DESCRIPTION |
|---|---|
mod_version |
Mod version derived from the csproj
TYPE:
|
engine_version |
Engine version string (
TYPE:
|
platform |
OS platform the Resonite client runs on.
TYPE:
|
is_wine |
True when the client runs under Wine/Proton.
TYPE:
|
resonite_pid |
Host PID of the engine process (
TYPE:
|
renderer_pid |
Host PID of the renderer process
(
TYPE:
|
resoio.info.ServerPlatform ¶
Bases: Enum
OS platform the Resonite client runs on (mirrors FrooxEngine).