Skip to main content
reference

EndpointFactory

Class with the static factory methods to create instances of Connection and APIs

Methods

getEventQueue

Gets the EventQueue instance.

getEventQueue()

TypeDescription
Promise<EventQueue> instance of EventQueue

connect

Connects to the platform backend.

connect(userPrivKey, solutionId, bridgeUrl)

NameTypeDescription
userPrivKeystringuser's private key
solutionIdstringID of the Solution
bridgeUrlstringthe Bridge Server URL

TypeDescription
Promise<Connection> instance of Connection

connectPublic

Connects to the Platform backend as a guest user.

connectPublic(solutionId, bridgeUrl)

NameTypeDescription
solutionIdstringID of the Solution
bridgeUrlstringthe Bridge Server URL

TypeDescription
Promise<Connection> instance of Connection

createThreadApi

Creates an instance of the Thread API.

createThreadApi(connection)

NameTypeDescription
connectionConnectioninstance of Connection

TypeDescription
Promise<ThreadApi> instance of ThreadApi

createStoreApi

Creates an instance of the Store API.

createStoreApi(connection)

NameTypeDescription
connectionConnectioninstance of Connection

TypeDescription
Promise<StoreApi> instance of StoreApi

createInboxApi

Creates an instance of the Inbox API.

createInboxApi(connection, threadApi, storeApi)

NameTypeDescription
connectionConnectioninstance of Connection
threadApiThreadApiinstance of ThreadApi
storeApiStoreApiinstance of StoreApi

TypeDescription
Promise<InboxApi> instance of InboxApi

createCryptoApi

Creates an instance of the Crypto API.

createCryptoApi()

TypeDescription
Promise<CryptoApi> instance of CryptoApi