From 67c0d3dafca78610a700271650721332928c93fc Mon Sep 17 00:00:00 2001
From: Andrey Platov <andrey@hardcoreeng.com>
Date: Sat, 14 Aug 2021 11:11:49 +0200
Subject: [PATCH] ping

Signed-off-by: Andrey Platov <andrey@hardcoreeng.com>
---
 plugins/client-resources/src/connection.ts | 2 +-
 server/ws/src/server.ts                    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/plugins/client-resources/src/connection.ts b/plugins/client-resources/src/connection.ts
index 82e830f7e0..d0890e6f8f 100644
--- a/plugins/client-resources/src/connection.ts
+++ b/plugins/client-resources/src/connection.ts
@@ -57,8 +57,8 @@ class Connection implements Storage {
       }
     }
     const interval = setInterval(() => {
-      // eslint-disable-next-line @typescript-eslint/no-floating-promises
       console.log('ping')
+      // eslint-disable-next-line @typescript-eslint/no-floating-promises
       this.sendRequest('ping')
     }, 10000)
     websocket.onclose = () => {
diff --git a/server/ws/src/server.ts b/server/ws/src/server.ts
index 620500e844..ebdf025c35 100644
--- a/server/ws/src/server.ts
+++ b/server/ws/src/server.ts
@@ -39,7 +39,7 @@ class Session implements Storage {
     private readonly storage: ServerStorage
   ) {}
 
-  async ping (): Promise<string> { return 'pong!' }
+  async ping (): Promise<string> { console.log('ping'); return 'pong!' }
 
   async findAll <T extends Doc>(_class: Ref<Class<T>>, query: DocumentQuery<T>, options?: FindOptions<T>): Promise<FindResult<T>> {
     return await this.storage.findAll(_class, query, options)