nl_tokens: / * Set the DSN ( can be called multiple time unlike config )
pl_tokens: function setDSN ( dsn ) { var self = this , uri = self . _parseDSN ( dsn ) , lastSlash = uri . path . lastIndexOf ( '/' ) , path = uri . path . substr ( 1 , lastSlash ) ; self . _dsn = dsn ; self . _globalKey = uri . user ; self . _globalSecret = uri . pass && uri . pass . substr ( 1 ) ; self . _globalProject = uri . path . substr ( lastSlash + 1 ) ; <mask> . _globalServer = self . _getGlobalServer ( uri ) ; self . _globalEndpoint = self . _globalServer + '/' + path + 'api/' + self . _globalProject + '/store/' ; // Reset backoff state since we may be pointing at a // new project/server this . _resetBackoff ( ) ; }