From 51789762ba29d9ab8d76c8b41ebee96620d6cbc5 Mon Sep 17 00:00:00 2001 From: Leonardo Venturini Date: Thu, 26 Oct 2023 14:12:41 -0400 Subject: [PATCH] we should await for clock to sync on connection --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index f1989fc..6d0559e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -113,7 +113,7 @@ export class Monti extends EventEmitter2 { this._options.clockSyncInterval, ); - this._clock.sync(); + await this._clock.sync(); this._initWebSocket(); }