mirror of
https://github.com/hcengineering/platform.git
synced 2024-11-22 21:50:34 +03:00
ping
Signed-off-by: Andrey Platov <andrey@hardcoreeng.com>
This commit is contained in:
parent
3b04ed06d2
commit
67c0d3dafc
@ -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 = () => {
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user