How to use the backendless-rt-client function in backendless-rt-client

To help you get started, we’ve selected a few backendless-rt-client examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Backendless / JS-SDK / src / rt.js View on Github external
export const initRTClient = () => {
  if (rtClient) {
    rtClient.terminate()
  }

  rtClient = new BackendlessRTClient({
    appId     : LocalVars.applicationId,
    lookupPath: `${LocalVars.appPath}/rt/lookup`,
    debugMode : LocalVars.debugMode,
    connectQuery() {
      return {
        apiKey   : LocalVars.secretKey,
        userToken: getCurrentUserToken(),
        clientId : rtClientId,
      }
    }
  })
}

backendless-rt-client

Backendless RT Client for connect to Backendless RT Server

ISC
Latest version published 3 months ago

Package Health Score

71 / 100
Full package analysis