Skip to content
Merged
Show file tree
Hide file tree
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
6 changes: 3 additions & 3 deletions src/Tests/Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.13.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.8.1" />
<PackageReference Include="xunit" Version="2.9.3" />
<PackageReference Include="xunit.runner.visualstudio" Version="3.0.2" PrivateAssets="all" />
<PackageReference Include="coverlet.collector" Version="6.0.4" PrivateAssets="all" />
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.5" PrivateAssets="all" />
<PackageReference Include="coverlet.collector" Version="10.0.1" PrivateAssets="all" />
</ItemGroup>

<ItemGroup>
Expand Down
12 changes: 6 additions & 6 deletions src/WebSocketPipe/IWebSocketPipe.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,22 @@ public interface IWebSocketPipe : IDuplexPipe, IDisposable
/// <summary>
/// Indicates the reason for the close handshake.
/// </summary>
public WebSocketCloseStatus? CloseStatus { get; }
WebSocketCloseStatus? CloseStatus { get; }

/// <summary>
/// Allows describing the reason why the connection was closed.
/// </summary>
public string? CloseStatusDescription { get; }
string? CloseStatusDescription { get; }

/// <summary>
/// Returns the current state of the underlying <see cref="WebSocket"/> connection.
/// </summary>
public WebSocketState State { get; }
WebSocketState State { get; }

/// <summary>
/// Gets the subprotocol that was negotiated during the opening handshake.
/// </summary>
public string? SubProtocol { get; }
string? SubProtocol { get; }

/// <summary>
/// Completes both the <see cref="IDuplexPipe.Input"/> and <see cref="IDuplexPipe.Output"/>
Expand All @@ -44,7 +44,7 @@ public interface IWebSocketPipe : IDuplexPipe, IDisposable
/// <param name="closeStatusDescription">Optional close status description to use if the underlying
/// <see cref="WebSocket"/> is closed.</param>
/// <returns></returns>
public Task CompleteAsync(WebSocketCloseStatus? closeStatus = null, string? closeStatusDescription = null);
Task CompleteAsync(WebSocketCloseStatus? closeStatus = null, string? closeStatusDescription = null);

/// <summary>
/// Starts populating the <see cref="IDuplexPipe.Input"/> with incoming data from the underlying
Expand All @@ -57,5 +57,5 @@ public interface IWebSocketPipe : IDuplexPipe, IDisposable
/// <see cref="IDuplexPipe.Output"/> are completed, or an explicit invocation of <see cref="CompleteAsync"/>
/// is executed.
/// </returns>
public Task RunAsync(CancellationToken cancellation = default);
Task RunAsync(CancellationToken cancellation = default);
}