Skip to content

Commit

Permalink
Try 128KB buffer threshold on data channel.
Browse files Browse the repository at this point in the history
  • Loading branch information
bitbound committed Apr 28, 2021
1 parent 6cdfa05 commit aa5ff09
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Desktop.Core/Services/WebRtcSession.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ public async Task Init(IceServerModel[] iceServers)
public Task SendDto<T>(T dto) where T : BaseDto
{
CaptureChannel.SendMessage(MessagePackSerializer.Serialize(dto));
TaskHelper.DelayUntil(() => CurrentBuffer < 128_000, TimeSpan.FromSeconds(5));
return Task.CompletedTask;
}

Expand Down

0 comments on commit aa5ff09

Please sign in to comment.