add session diff

This commit is contained in:
Dax Raad 2025-11-18 19:54:23 -05:00 committed by Adam
parent 7aeb89dd49
commit 8afaec6794
No known key found for this signature in database
GPG key ID: 9CB48779AF150E75

View file

@ -32,6 +32,14 @@ export namespace ShareNext {
},
])
})
Bus.subscribe(Session.Event.Diff, async (evt) => {
await sync(evt.properties.sessionID, [
{
type: "session_diff",
data: evt.properties.diff,
},
])
})
}
export async function create(sessionID: string) {