Websocket buffer size performance and latency
I'm trying to figure out what buffer size to have, does having a lower buffer size increase or decrease latency? I'm wanting the quickest latency possible
2 Replies
Which buffer exactly are you referring to?
public override Task<WebSocketReceiveResult> ReceiveAsync(ArraySegment<byte> buffer, CancellationToken cancellationToken) =>
ConnectedWebSocket.ReceiveAsync(buffer, cancellationToken);
this buffer using using System.Net.WebSockets;
var result = await ws.ReceiveAsync(new ArraySegment<byte>(buffer), CancellationToken.None);