Function ClientRpc

  • Registers the following method as a Observer (multiple clients remote procedure call) - this allows the server to invoke this function on all listening clients (based on permissions)

    Type Parameters

    • T extends readonly unknown[]

    Parameters

    • options: ClientRpcAttribute<T> = {}

      Options & permissions around this RPC

    Returns ((target, property, descriptor) => void)

      • (target, property, descriptor): void
      • Parameters

        Returns void