gnolang / tm2-js-client

The Tendermint2 JS/TS client (SDK)
https://gno.land
Apache License 2.0
10 stars 4 forks source link

Switch WS request ID to `uuid` & bump WS connection timeout #85

Closed zivkovicmilos closed 1 year ago

zivkovicmilos commented 1 year ago

Description

Based on discussions in https://github.com/gnolang/gnochess/issues/86, this PR aims to integrate UUIDs for request IDs, as timestamps cannot be valid in highly concurrent environments.

Additionally, it also bumps the WS connection timeout from 2s to 10s, and modifies the error response to better reflect the encountered connection problem.