Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/StreamJsonRpc/WebSocketMessageHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ protected override async ValueTask WriteCoreAsync(JsonRpcMessage content, Cancel
{
Requires.NotNull(content, nameof(content));

using (var contentSequenceBuilder = new Sequence<byte>())
using (var contentSequenceBuilder = new Sequence<byte>(ArrayPool<byte>.Shared) { MinimumSpanLength = this.sizeHint })
Comment thread
AArnott marked this conversation as resolved.
{
WebSocketMessageType messageType = this.Formatter is IJsonRpcMessageTextFormatter ? WebSocketMessageType.Text : WebSocketMessageType.Binary;
this.Formatter.Serialize(contentSequenceBuilder, content);
Expand Down