API
Exported methods and properties
1 2 3 4 5 6 7 8 | |
sse
A namespace for easy access to types, all types in SSE.proto are accessible from this namespace:
1 2 3 | |
server(options)
-
options<Object>identifier<string> Identifier for this SSE plugin.version<string> Version number of the SSE.allowScript<boolean> OPTIONAL Whether to allow script evaluation. Defaults tofalse.disableBuildIn<boolean> OPTIONAL Disable/enable loading of all build-in functions. Default isfalsessl<Object> OPTIONAL
-
returns: <Server>
Creates a new Server instance.
1 2 3 4 5 6 7 8 9 10 11 12 | |
Server
server.start(options)
Starts the server.
server.close()
Stops the server.
server.addFunction(fn, config)
fn<function (Request)>config<Object>functionType<[FunctionType]> Type of functionreturnType<[DataType]> Type of data this function is expected to returnparams<Array<Object>>name<string>dataType: <[DataType]>tableDescription<[TableDescription]> Description of the returned table when function is called from load script using theextensionclause.
Register a function which can be called from an expression.
1 2 3 4 5 6 7 8 9 | |
server.listAllFunctions()
Metadata about all registered functions (enabled and disabled)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | |
server.disableFunction(functionId)
functionId<number> - id of the function to disable
1 | |
Disable specific function. The function is identified by its id.
Note
1 | |
server.enableFunction(functionId)
functionId<number> - id of the function to enable
1 | |
Enable specific function. The function is identified by its id.
server.removeFunction(functionId)
functionId<number> - id of the function to remove
1 | |
Removes specific function. The function is identified by its id.
Note
Once the function is removed then it cant be called from Qlik (aka reload fails) and will not be listed in listAllFunctions
Request
request.on(event, fn)
1 | |
request.write(bundle)
bundle<[BundledRows]>
Writes data back to Qlik Engine.
1 2 3 4 | |