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
canton7
canton73y ago
Which buffer exactly are you referring to?
Limited Past
Limited PastOP3y ago
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);

Did you find this page helpful?