Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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,
}
}
})
}