RSX Code Reference
    Preparing search index...
    • rsx
    • RpcRegistry

    Class RpcRegistry

    Global RPC registry for storing all known RPC registrations.

    All RPC methods are registered here at startup. The registry is used by the replication manager to resolve method paths to handlers.

    Index
    • Finds an RPC registration by path.

      Parameters

      • path: string

        The method path to look up.

      Returns RpcRegistration

      Pointer to the registration, or nullptr if not found.

    • Registers an RPC method with individual parameters.

      Parameters

      • path: string

        The method path for routing RPC calls.

      • func: (arguments_: MemoryDataStream) => void

        The handler function to invoke.

      • scope: EnumValue<RpcScope>

        The default scope of the call.

      • reliable: boolean

        If true, the RPC must be delivered reliably.

      • scriptModule: string

        The script module that registered this RPC.

      Returns boolean

      True if the registration was successful, false otherwise.

      The path must be unique. Duplicate registrations will log an error.