# Sisense Class (static)
The main object and entry point of the Sisense.JS SDK
# Methods
# Sisense.connect
Sisense.connect(url, [persist]) → Promise<
SisenseApp
>
Connect to a Sisense Web instance. Every use of Sisense.js SDK begins with this.
Arguments
Name | Type | Required | Description | Example |
---|---|---|---|---|
url | string | Yes | Base URL of the Sisense Web Server, including protocol & port | 'https://sisense.myapp.com:8081' |
[persist] | boolean | No | Set to true for persistent filter behavior |
Returns
A Promise
that resolves to a SisenseApp
once connection has been established.
Example
Sisense.connect('http://localhost:8081', false).then(function(app) {
// your code here
});