|
|
|
@ -58,13 +58,8 @@ class LokiFileServerInstance {
|
|
|
|
|
// LokiAppDotNetAPI (base) should not know about LokiFileServer.
|
|
|
|
|
async establishConnection(serverUrl, options) {
|
|
|
|
|
// why don't we extend this?
|
|
|
|
|
if (process.env.USE_STUBBED_NETWORK) {
|
|
|
|
|
// eslint-disable-next-line global-require
|
|
|
|
|
const StubAppDotNetAPI = require('../../integration_test/stubs/stub_app_dot_net_api.js');
|
|
|
|
|
this._server = new StubAppDotNetAPI(this.ourKey, serverUrl);
|
|
|
|
|
} else {
|
|
|
|
|
this._server = new LokiAppDotNetAPI(this.ourKey, serverUrl);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this._server = new LokiAppDotNetAPI(this.ourKey, serverUrl);
|
|
|
|
|
|
|
|
|
|
// configure proxy
|
|
|
|
|
this._server.pubKey = this.pubKey;
|
|
|
|
|