Signed-off-by: Andrey Platov <andrey@hardcoreeng.com>
This commit is contained in:
Andrey Platov 2021-08-14 11:11:49 +02:00
parent 3b04ed06d2
commit 67c0d3dafc
No known key found for this signature in database
GPG Key ID: C8787EFEB4B64AF0
2 changed files with 2 additions and 2 deletions

View File

@ -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 = () => {

View File

@ -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)