Class: Webcom

Webcom

The Webcom object is the entry point for all classes, functions and properties of the Webcom SDK:

  • Webcom.App: static function to create instances of WebcomApp, which is the root class for using Webcom apps,
  • Webcom.Log: static property to control the logging layer of the Webcom SDK.

This static class cannot be instantiated, except in legacy version of the Webcom SDK (check the "show deprecated" box on the right-upper corner to get more information).

Extends

Members

(static, constant) Authentication :Authentication.API

Gets the entry point for accessing all relevant constants and functions related to the Authentication service.

Type:
Since:
  • 3.5

(static, constant) Log :LogManager

Gets the LogManager API to control logs produced by the Webcom SDK.

Type:
Since:
  • 2.11

(static, constant) SDK_VERSION :string

Version of the current Webcom SDK.

Type:
  • string

(static, constant) ServerlessDb :ServerlessDb.API

Gets the entry point for accessing all relevant constants and functions related to the ServerlessDb service.

Type:
Since:
  • 3.5

Methods

(static) App(appId, configopt) → {WebcomApp}

Creates an instance of WebcomApp.

Parameters:
Name Type Attributes Description
appId string

The identifier of the Webcom application the WebcomApp object to be created will refer to.

config WebcomApp.Configuration | string <optional>

Configuration of the WebcomApp object to create. It consists in a collection of keys mapped to the configurations of each available Webcom service:

A simpler configuration may be provided as a string representing the base URL of the targeted hosting Webcom platform (following the syntax: {protocol}?{host}(:{port})?). It is then equivalent to the following configuration: {Authentication:{baseUrl:"hostingPf"},ServerlessDb:{baseUrl:"hostingPf"},ServerlessDbLite:{baseUrl:"hostingPf"}}

If not set, an empty WebcomApp.Configuration is used, resulting in default configuration values.

Since:
  • 2.8
Returns:
Type
WebcomApp

(static) Webhook(identifier, context) → {ServerlessDb.Webhook}

Creates an instance of ServerlessDb.Webhook notification channel, which is intended to be registered with the ServerlessDb.ServerlessDbNode#subscribe method.

Parameters:
Name Type Description
identifier string

The identifier of webhook defined in the Webcom developer console, which will be targeted by all further events notified to this target.

context string

A customized string, which will be attached to all further events notified to this target.

Since:
  • 2.10
Returns:
Type
ServerlessDb.Webhook
show
deprecated