Skip to content

Latest commit

 

History

History
62 lines (38 loc) · 1.24 KB

server.md

File metadata and controls

62 lines (38 loc) · 1.24 KB

Server

server

The server library provides helper functions for interacting with the server and other remotes.

local server = require("server");

server.load( id )

Tells the server to load (create) the specified remote.

server.load("Unified.Chrome");

server.unload( id )

Tells the server to unload (destroy) the specified remote.

server.unload("Unified.Chrome");

server.run( id, action [,extra, ...] )

Tells the server to run an action for the specified remote.

server.run("Unified.Chrome", "back");
server.run("Unified.Command", "execute", "echo foobar");

The server will automatically load (create) the remote.

server.update( update [,update, ...] )

Perform one or more layout updates for the active remote.

server.update(
	{ id = "info", text = "foobar" },
	{ id = "tgl", checked = true }
);

For simple updates, you can use the layout helper library instead.

This function should be used to perform advanced updates such as lists and dialogs. See here.