mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-21 08:20:24 +02:00
Chunking incoming WS messages
This commit is contained in:
@@ -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 }
|
||||
|
Reference in New Issue
Block a user