Server Backup Client interface (#1813)

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev
2022-05-23 22:53:33 +07:00
committed by GitHub
parent 37abd77e44
commit bc5f9c0631
40 changed files with 1057 additions and 130 deletions
+2 -1
View File
@@ -24,7 +24,7 @@ import {
FullTextAdapter,
IndexedDoc
} from '@anticrm/server-core'
import { start as startJsonRpc } from '@anticrm/server-ws'
import { ClientSession, start as startJsonRpc } from '@anticrm/server-ws'
class NullFullTextAdapter implements FullTextAdapter {
async index (doc: IndexedDoc): Promise<TxResult> {
@@ -78,6 +78,7 @@ export async function start (port: number, host?: string): Promise<void> {
}
return createPipeline(conf, [])
},
(token, pipeline, broadcast) => new ClientSession(broadcast, token, pipeline),
port,
host
)