This object is used to make interaction with server scripts transparent.
Example of calling a server-side method from the client side:

await Server.rpc.doSomething()

Read more about it in the Scripts in widgets article in the Help Center.

Hierarchy

  • ServerCollection

Properties

Readonly rpc

rpc: RPCMethodList

List of server functions.

Is generated on the client side using server-side functions that match the following signature:

async function() : Promise<void>;