Core
Methods
getModule(token: Token
): undefined | Module
Returns a registered module by its token synchronously.
If no module is registered with the specified token, returns undefined.
See: ConferenceManager, CallManager, SmartQueue, StreamModule, NoiseSuppressionBalanced, NoiseSuppressionAggressive
Parameters
token:
Token
Returns
type:
undefined | Module
getModuleAsync(token: Token
): Promise<Module>
Returns a registered module by its token.
If a module with the specified token is registered, returns it immediately.
If a module with the specified token is not registered, returns a promise that is resolved/rejected only after the module registration is complete.
See: ConferenceManager, CallManager, SmartQueue, StreamModule, NoiseSuppressionBalanced, NoiseSuppressionAggressive
Parameters
token:
Token
Returns
type:
Promise<Module>
Throws
CoreInternalError if a module registration has failed after this method call
init(options: ): Initializes the SDK and returns an instance.
If the SDK is already initialized, returns the previously created instance without applying the new options.
Parameters
options:
OptionalInitialization options
Returns
type:
registerModules(modules: ModuleLoader[]
): void
Registers the SDK modules in the WebSDK container.
It is allowed to call this method multiple times and register the modules as needed.
Modules cannot be obtained and used until they are successfully registered.
After calling this method, all specified modules are initialized and available via Core.getModule or Core.getModuleAsync.
See: ConferenceLoader, CallLoader, SmartQueueLoader, StreamLoader, NoiseSuppressionBalancedLoader, NoiseSuppressionAggressiveLoader
Parameters
modules:
ModuleLoader[]
Returns
type:
void