Server Object

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 asynchronous functions in server scripts that match the signature:

(...args: any[]) => Promise<void>

Example:

async function doSomething(): Promise<void> {
    // ...  ... ... 
}