Add extension to recycle websockets (#50)

Signed-off-by: Macocian Alexandru Victor <amacocian@yahoo.com>
This commit is contained in:
2023-05-15 11:21:29 +02:00
committed by GitHub
parent 0de73a967b
commit fe049d4c00
3 changed files with 10 additions and 2 deletions
@@ -28,4 +28,6 @@ public interface IClientWebSocket<TScope>
Task<WebSocketReceiveResult> ReceiveAsync(ArraySegment<byte> buffer, CancellationToken cancellationToken);
Task SendAsync(ArraySegment<byte> buffer, WebSocketMessageType messageType, bool endOfMessage, CancellationToken cancellationToken);
void RefreshSocket(ClientWebSocket? clientWebSocket = default);
}