mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-25 18:26:05 +08:00
feat(nbstore): add awareness storage&sync&frontend (#9016)
This commit is contained in:
@@ -29,6 +29,19 @@ interface ServerEvents {
|
||||
timestamp: number;
|
||||
editor: string;
|
||||
};
|
||||
|
||||
'space:collect-awareness': {
|
||||
spaceType: string;
|
||||
spaceId: string;
|
||||
docId: string;
|
||||
};
|
||||
|
||||
'space:broadcast-awareness-update': {
|
||||
spaceType: string;
|
||||
spaceId: string;
|
||||
docId: string;
|
||||
awarenessUpdate: string;
|
||||
};
|
||||
}
|
||||
|
||||
interface ClientEvents {
|
||||
@@ -52,6 +65,19 @@ interface ClientEvents {
|
||||
docId: string;
|
||||
};
|
||||
|
||||
'space:update-awareness': {
|
||||
spaceType: string;
|
||||
spaceId: string;
|
||||
docId: string;
|
||||
awarenessUpdate: string;
|
||||
};
|
||||
|
||||
'space:load-awarenesses': {
|
||||
spaceType: string;
|
||||
spaceId: string;
|
||||
docId: string;
|
||||
};
|
||||
|
||||
'space:push-doc-update': [
|
||||
{ spaceType: string; spaceId: string; docId: string; updates: string },
|
||||
{ timestamp: number },
|
||||
|
||||
Reference in New Issue
Block a user