1
0
mirror of https://github.com/JKorf/CryptoExchange.Net.git synced 2026-08-18 20:02:57 +00:00

Allow specifying the ReceiveMessageBuffer size on Websockets (#228)

In order to support more User websocket connections, allow reducing the memory requirements for the receive buffer, keeping the default buffer.
This commit is contained in:
James Carter
2025-02-23 18:58:05 +00:00
committed by GitHub
parent 3b15c35a02
commit 4c050744ad
4 changed files with 26 additions and 6 deletions
@@ -64,6 +64,11 @@ namespace CryptoExchange.Net.Objects.Sockets
/// </summary>
public Encoding Encoding { get; set; } = Encoding.UTF8;
/// <summary>
/// The buffer size to use for receiving data
/// </summary>
public int? ReceiveBufferSize { get; set; } = null;
/// <summary>
/// ctor
/// </summary>