Max buf len from constants

This commit is contained in:
Paul Schneider 2019-06-25 09:21:10 +01:00
commit 5f4f698b5b
5 changed files with 6 additions and 5 deletions

View file

@ -17,7 +17,7 @@ namespace Yavsc
var webSocketOptions = new WebSocketOptions()
{
KeepAliveInterval = TimeSpan.FromSeconds(120),
ReceiveBufferSize = 16 * 1024,
ReceiveBufferSize = Constants.WebSocketsMaxBufLen,
ReplaceFeature = true
};
app.UseWebSockets(webSocketOptions);