mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Chunking incoming WS messages
This commit is contained in:
parent
1abb901ec2
commit
12be5d716b
6 changed files with 405 additions and 173 deletions
|
@ -9,6 +9,18 @@ export type PUSH_PAYLOAD = {
|
|||
|
||||
export type CLIENT_INCREMENT = StoreIncrement;
|
||||
|
||||
export type CLIENT_MESSAGE_METADATA = {
|
||||
id: string;
|
||||
order: number;
|
||||
count: number;
|
||||
};
|
||||
|
||||
export type CLIENT_MESSAGE_RAW = {
|
||||
type: "relay" | "pull" | "push";
|
||||
payload: string;
|
||||
chunkInfo: CLIENT_MESSAGE_METADATA;
|
||||
};
|
||||
|
||||
export type CLIENT_MESSAGE =
|
||||
| { type: "relay"; payload: RELAY_PAYLOAD }
|
||||
| { type: "pull"; payload: PULL_PAYLOAD }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue