Skip to content

Commit 1c6dd96

Browse files
authored
MaxFragmentSize is now public and default value increased (#40)
1 parent afcc5e3 commit 1c6dd96

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

WebSockets/WebSocket.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,12 @@ public abstract class WebSocket : IDisposable
6262
/// <summary>
6363
/// Gets or sets the maximum allowed byte length of a partial message send by the WebSocket.
6464
/// By default if a message that exceeds the size limit it will be broken up in smaller partial messages
65-
/// Default is 124 bytes
65+
/// Default is 32768 bytes (32kB).
6666
/// <value>
6767
/// The maximum allowed byte length of a partial message send by the WebSocket.
6868
/// </value>
6969
/// </summary>
70-
public int MaxFragmentSize { get; private set; } = 1024;
70+
public int MaxFragmentSize { get; private set; } = 32768;
7171

7272
/// <summary>
7373
/// Gets the WebSocket state of the System.Net.WebSockets.ClientWebSocket instance.

WebSockets/WebSocketFrame/WebSocketOptions.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,11 @@ public class WebSocketOptions
3636
/// <summary>
3737
/// Gets or sets the maximum allowed byte length of a partial message send by the WebSocket.
3838
/// By default if a message that exceeds the size limit it will be broken up in smaller partial messages
39+
/// Default is 32768 bytes (32kB).
3940
/// </summary>
4041
/// <value>
4142
/// The maximum allowed byte length of a partial message send by the WebSocket.
4243
/// </value>
43-
public int MaxFragmentSize { get; private set; } = 1024;
44+
public int MaxFragmentSize { get; set; } = 32768;
4445
}
4546
}

0 commit comments

Comments
 (0)