Skip to content

Commit e8cc8d9

Browse files
xsbfhxsbfh
authored andcommitted
add notes on max message size
Signed-off-by: xsbfh <z6MkpzZDoFM7tPZPXqvaVCtMFxKJQAxghVRJZxsf8s8SqBvm@dev.smashchats.com>
1 parent 7d7551a commit e8cc8d9

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/shared/constants/protocol.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
export const EXPIRATION_TIME_MS = 7 * 24 * 60 * 60 * 1000; // 7 days
22
export const SESSION_TTL_MS = EXPIRATION_TIME_MS;
3-
export const MAX_MESSAGE_SIZE = 512 * 1024; // 512KB
3+
// MAX_MESSAGE_SIZE set to 512KB to match socket.io cap
4+
// https://socket.io/fr/how-to/upload-a-file
5+
// Note that files shouldnt be sent as Smash messages, but with CDN protocols
6+
export const MAX_MESSAGE_SIZE = 512 * 1024;

0 commit comments

Comments
 (0)