DsClientSettings

DsClientSettings

new DsClientSettings()

Source:

Members

(nullable) debug_print :boolean

Type:
  • boolean
Source:

(nullable) initial_category :string

The initial value of a session's category.

Type:
  • string
Source:

(nullable) on_service_failure :function

A function that is called if the backend service generates unexpected errors.

Type:
  • function
Source:

(nullable) on_service_unavailable :function

A function that is called if the backend service cannot be reached.

Type:
  • function
Source:

(nullable) on_unauthorized_session :function

A callback to notify whenever the protocol issues an Unauthorized Session error. The error will pass to the call-specific error callback if this field is null.

Type:
  • function
Source:

(nullable) origin :string

Origin is used to track the outer client URL, the URL to the embedding page. The name is admittedly vague but it is the name used by the server side code.

Type:
  • string
Source:

session_ttl :number

Session Time To Live in seconds. Introduced to cleanup test session resources.

0 --> use server default.

Type:
  • number
Source:

(nullable) use_jsonp :boolean

Type:
  • boolean
Source:

(nullable) use_nova_protocol :boolean

Type:
  • boolean
Source:

Methods

assert_valid()

Source:

overloadWith(othernon-null) → (non-null) {spv.ds.DsClientSettings}

Creates new settings by overloading these settings with another set of settings. Null properties are left untouched, but defined properties are taken from the argument settings.

Parameters:
Name Type Description
other spv.ds.DsClientSettings
Source:
Returns:
Type
spv.ds.DsClientSettings

toString() → (non-null) {string}

Source:
Returns:
Type
string