registerModule

fun registerModule(moduleObject: Map<String, Any>, callback: Consumer<ClientModule>)

Registers a new script module

Parameters

moduleObject

JavaScript object containing information about the module.

callback

JavaScript function to which the corresponding instance of ScriptModule is passed.

See also