Config

Config

Global config class.

Usage node:

import {Config} from 'digitalbits-sdk';
Config.setAllowHttp(true);

Usage browser:

DigitalBitsSdk.Config.setAllowHttp(true);

Constructor

new Config()

Source:

Methods

(static) isAllowHttp()

Returns the value of allowHttp flag.

Source:

(static) setAllowHttp(value)

Sets allowHttp flag globally. When set to true, connections to insecure http protocol servers will be allowed. Must be set to false in production. Default: false.

Source:
Parameters:
Name Type Description
value boolean

(static) setDefault()

Sets all global config flags to default values.

Source: