diff --git a/Dependencies.props b/Dependencies.props
index 7e2e95f..abeea80 100644
--- a/Dependencies.props
+++ b/Dependencies.props
@@ -1,5 +1,5 @@
- 2.0.0-beta.24
+ 2.0.0-beta.26
\ No newline at end of file
diff --git a/src/WebSocket4Net/HandshakePipelineFilter.cs b/src/WebSocket4Net/HandshakePipelineFilter.cs
index c35b83b..769c1e1 100644
--- a/src/WebSocket4Net/HandshakePipelineFilter.cs
+++ b/src/WebSocket4Net/HandshakePipelineFilter.cs
@@ -6,6 +6,11 @@ namespace WebSocket4Net
{
internal class HandshakePipelineFilter : WebSocketPipelineFilter
{
+ public HandshakePipelineFilter()
+ : base(requireMask: false)
+ {
+ }
+
protected override HttpHeader CreateHttpHeader(string verbItem1, string verbItem2, string verbItem3, NameValueCollection items)
{
return HttpHeader.CreateForResponse(verbItem1, verbItem2, verbItem3, items);
diff --git a/src/WebSocket4Net/WebSocket.cs b/src/WebSocket4Net/WebSocket.cs
index b32ada5..8582d8b 100644
--- a/src/WebSocket4Net/WebSocket.cs
+++ b/src/WebSocket4Net/WebSocket.cs
@@ -36,7 +36,15 @@ public class WebSocket : EasyClient, IWebSocket
private readonly EndPoint _remoteEndPoint;
- private static readonly IPackageEncoder _packageEncoder = new WebSocketEncoder();
+ private static readonly IPackageEncoder _packageEncoder = new WebSocketMaskedEncoder(ArrayPool.Shared, new int[]
+ {
+ 1024,
+ 1024 * 4,
+ 1024 * 8,
+ 1024 * 16,
+ 1024 * 32,
+ 1024 * 64
+ });
private List _subProtocols;