Used for seamless interaction with server-side scripts. Example of calling a server method from the client:

await Server.rpc. doSomething()

For more details, see the help article Scripts in widgets.

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>;