Naval-Base/yuudachi

bug(websocket): backoff returns ms but it is treated as seconds

Closed this issue · 0 comments

Where?

https://github.com/Naval-Base/yuudachi/blob/main/packages/yuudachi/src/websocket/WebSocketConnection.ts#L89-L114

The logger calls it seconds, but the backoff is configured to return ms.

Alternatives?

  • Return seconds from back-off and multiply in the setTimeout
  • Divide and round in the logger
  • Change the logger verbose to ms