Separate tracker deployment (#1245)

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev
2022-04-01 12:57:22 +07:00
committed by GitHub
parent 8cd1797696
commit 6fcbd14d6f
56 changed files with 904 additions and 215 deletions
+6 -5
View File
@@ -13,11 +13,11 @@
// limitations under the License.
//
import { createClient, Client, TxHander } from '@anticrm/core'
import { connect } from './connection'
import clientPlugin from '@anticrm/client'
import { getMetadata, getResource } from '@anticrm/platform'
import { Client, createClient, TxHander } from '@anticrm/core'
import { getMetadata, getPlugins, getResource } from '@anticrm/platform'
import { connect } from './connection'
export { connect }
/*!
@@ -38,11 +38,12 @@ export default async () => {
client = undefined
}
if (client === undefined) {
const filterModel = getMetadata(clientPlugin.metadata.FilterModel) ?? false
client = await createClient((handler: TxHander) => {
const url = new URL(`/${token}`, endpoint)
console.log('connecting to', url.href)
return connect(url.href, handler)
})
}, filterModel ? getPlugins() : undefined)
_token = token
// Check if we had dev hook for client.