global Class
Global functions.
Methods
include
-
scriptPath
Includes the JSS script file at the given path.
Parameters:
-
scriptPath
Objectpath 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
Stringname via which the object is to be referenced
-
funcOrObj
Function or Objectobject or function to be published
-
instructions
Objectobject 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).