added keepalive option to JWProxy
MODIFY
lib/jsonwp-proxy/proxy.js
lib/jsonwp-proxy/proxy.js
@@ -24,6 +24,7 @@ class JWProxy {
base: '/wd/hub',
sessionId: null,
timeout: DEFAULT_REQUEST_TIMEOUT,
+ keepAlive: false,
}, opts);
this.scheme = this.scheme.toLowerCase();
this._activeRequests = [];
@@ -128,6 +129,7 @@ class JWProxy {
},
resolveWithFullResponse: true,
timeout: this.timeout,
+ forever: this.keepAlive,
};
if (body !== null) {
if (typeof body !== 'object') {

added keepalive option to JWProxy (#325)