Add support for recv_window parameter and custom options for REST client (#7)

* remove unused/unexisting method. Add missing semi-colon. Add support for recvWindow parameter, optional, with default value. Add support for custom sync time interval.

* add new params to rest client constructor

* add recv and sync as options object, optional, with updated docs

* cleaning

* whitespace

* allow override via params

* param consistency

Co-authored-by: tiagosiebler <ts@github.com>
This commit is contained in:
Tiago
2020-04-09 14:28:18 +01:00
committed by GitHub
parent f4ef361816
commit 3f5624dd06
3 changed files with 21 additions and 6 deletions

View File

@@ -5,7 +5,7 @@ const Request = require('./request.js');
module.exports = class RestClient {
constructor(key, secret, livenet=false) {
constructor(key, secret, livenet=false, options={}) {
this.request = new Request(...arguments);
}