Commit Graph

7 Commits

Author SHA1 Message Date
tiagosiebler
e70d811654 fix prefixes 2020-06-17 10:56:18 +01:00
tiagosiebler
2f130931ff spacing & fix prefixed endpoints 2020-06-17 10:54:37 +01:00
Tiago
3f5624dd06 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>
2020-04-09 15:28:18 +02:00
Stefan Aebischer
995cd6ed73 Avoid conccurent _syncTime calls 2020-01-15 14:40:10 -05:00
Stefan Aebischer
e5fd04afc1 Fix time synchronization with server
- avoid that client time being ahead of server time
2020-01-15 14:38:23 -05:00
Stefan Aebischer
b6d2803a49 Time synchronization with server
- wrapper for /v2/public/time rest endpoint
- synchronize time before trying to authenticate a request in order
  to avoid invalid authentication because prevented replay attacks.

Resolves #1
2019-09-16 14:25:55 +02:00
Stefan Aebischer
ed28d14171 Initial commit 2019-09-14 16:02:11 +02:00