mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-22 16:27:22 +00: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(() => {
|
const interval = setInterval(() => {
|
||||||
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
|
||||||
console.log('ping')
|
console.log('ping')
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
||||||
this.sendRequest('ping')
|
this.sendRequest('ping')
|
||||||
}, 10000)
|
}, 10000)
|
||||||
websocket.onclose = () => {
|
websocket.onclose = () => {
|
||||||
|
@ -39,7 +39,7 @@ class Session implements Storage {
|
|||||||
private readonly storage: ServerStorage
|
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>> {
|
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)
|
return await this.storage.findAll(_class, query, options)
|
||||||
|
Loading…
Reference in New Issue
Block a user