File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
packages/transport-webrtc/src Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -35,9 +35,9 @@ export const MAX_BUFFERED_AMOUNT = 2 * 1024 * 1024
35
35
export const BUFFERED_AMOUNT_LOW_TIMEOUT = 30 * 1000
36
36
37
37
/**
38
- * protobuf field definition overhead
38
+ * protobuf field definition overhead + length encoding prefix length
39
39
*/
40
- export const PROTOBUF_OVERHEAD = 5
40
+ export const PROTOBUF_OVERHEAD = 7
41
41
42
42
/**
43
43
* Length of varint, in bytes
@@ -46,8 +46,11 @@ export const VARINT_LENGTH = 2
46
46
47
47
/**
48
48
* Max message size that can be sent to the DataChannel
49
+ *
50
+ * @see https://blog.mozilla.org/webrtc/large-data-channel-messages/
51
+ * @see https://issues.webrtc.org/issues/40644524
49
52
*/
50
- export const MAX_MESSAGE_SIZE = 16 * 1024
53
+ export const MAX_MESSAGE_SIZE = 256 * 1024
51
54
52
55
/**
53
56
* When closing streams we send a FIN then wait for the remote to
You can’t perform that action at this time.
0 commit comments