chore: handle messages via websockets (#2473)

* chore: handle messages via websockets

* chore: update domain events

* fix: specs

* fix: adjust server revision creation delay
This commit is contained in:
Karol Sójko
2023-09-01 13:07:15 +02:00
committed by GitHub
parent de165c7456
commit bd2172b773
13 changed files with 47 additions and 41 deletions

View File

@@ -267,6 +267,7 @@ describe('history manager', () => {
it('should save initial revisions on server', async () => {
const item = await Factory.createSyncedNote(application)
expect(item).to.be.ok
await Factory.sleep(Factory.ServerRevisionCreationDelay)

View File

@@ -288,7 +288,7 @@ export async function storagePayloadCount(application) {
* Controlled via docker/syncing-server-js.env
*/
export const ServerRevisionFrequency = 2.1
export const ServerRevisionCreationDelay = 1.0
export const ServerRevisionCreationDelay = 1.5
export function yesterday() {
return new Date(new Date().setDate(new Date().getDate() - 1))

View File

@@ -38,7 +38,7 @@
"@standardnotes/api": "workspace:*",
"@standardnotes/common": "^1.50.0",
"@standardnotes/domain-core": "^1.25.0",
"@standardnotes/domain-events": "^2.120.0",
"@standardnotes/domain-events": "^2.121.0",
"@standardnotes/encryption": "workspace:*",
"@standardnotes/features": "workspace:*",
"@standardnotes/files": "workspace:*",