API Docs for:
Show:

global Class

Module: API

Global functions.

Item Index

Methods

Methods

include

(
  • scriptPath
)

Includes the JSS script file at the given path.

Parameters:

  • scriptPath Object

    path of JSS script file.

publish

(
  • name
  • funcOrObj
  • instructions
)

Adds the given object (usually a function) to the global scope using the given name. If the published object is a function then it will be made available via RPC unless 'serverOnly' is supplied in the instructions argument. the instructions argument.

Parameters:

  • name String

    name via which the object is to be referenced

  • funcOrObj Function or Object

    object or function to be published

  • instructions Object

    object whose properties specify how the object is to be published. If the object has a 'serverOnly' field whose value is true then the function will not be made available via RPC. If it has a 'maxCallsPerMinute' field with an integer value then this will be the maximum number of RPC invocations allowed per minute (default is 100).