Skip to content

Commit daaf1dd

Browse files
committed
Added support for specifying max frame size for transports
1 parent b607989 commit daaf1dd

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

src/netstandard/Extensions/WampSharp.AspNet.WebSockets.Server/AspNetWebsocketTransport.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,12 @@ public sealed class AspNetWebSocketTransport : WebSocketTransport<WebSocketData>
2222

2323
/// <exclude />
2424
public AspNetWebSocketTransport(string url,
25-
ICookieAuthenticatorFactory authenticatorFactory = null)
25+
ICookieAuthenticatorFactory authenticatorFactory = null,
26+
int? maxFrameSize = null)
2627
: base(authenticatorFactory)
2728
{
2829
mUrl = url;
30+
mMaxFrameSize = maxFrameSize;
2931
}
3032

3133
/// <exclude />

src/netstandard/Extensions/WampSharp.AspNetCore.WebSockets.Server/AspNetCoreWebSocketTransport.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,11 @@ public class AspNetCoreWebSocketTransport : WebSocketTransport<WebSocketData>
1919

2020
public AspNetCoreWebSocketTransport
2121
(IApplicationBuilder app,
22-
ICookieAuthenticatorFactory authenticatorFactory = null) :
22+
ICookieAuthenticatorFactory authenticatorFactory = null,
23+
int? maxFrameSize = null) :
2324
base(authenticatorFactory)
2425
{
26+
mMaxFrameSize = maxFrameSize;
2527
mHandler = this.EmptyHandler;
2628
app.Use(HttpHandler);
2729
}

src/netstandard/Extensions/WampSharp.HttpListener/HttpListenerWebSocketTransport.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,12 @@ public sealed class HttpListenerWebSocketTransport : WebSocketTransport<WebSocke
2424
public HttpListenerWebSocketTransport
2525
(string url,
2626
Action<HttpListenerContext> onUnknownRequest = null,
27-
ICookieAuthenticatorFactory authenticatorFactory = null)
27+
ICookieAuthenticatorFactory authenticatorFactory = null,
28+
int? maxFrameSize = null)
2829
: base(authenticatorFactory)
2930
{
3031
mUrl = url;
32+
mMaxFrameSize = maxFrameSize;
3133
mOnUnknownRequest = onUnknownRequest ?? CancelRequest;
3234
}
3335

0 commit comments

Comments
 (0)