Require a new functionality
The Hub provides Lua API to access functionality it implements. This functionality is splitted in groups, namespaces or modules, like , , , etc. Such modules (as such provided functionality) can be used withing Lua scripts by using a standart mean – .
- Returns a lua module (table) which provides functionality or nill in a case of an error. Note: also registers global variable which refers to the lua module.
Note: each Lua script can be launched in a separate environment (does it use separate environment or not depends on hardware and platform). If you need to save some state use the module.