/// <inheritdoc /> public Task CloseAsync(CancellationToken ct) => SystemWebSocket.CloseAsync(WebSocketCloseStatus.NormalClosure, string.Empty, ct);
/// <inheritdoc /> void IDisposable.Dispose() => SystemWebSocket?.Dispose();
/// <inheritdoc /> public Task SendAsync(byte[] buffer, bool isText, CancellationToken ct) => SystemWebSocket.SendAsync( new ArraySegment <byte>(buffer), isText ? WebSocketMessageType.Text : WebSocketMessageType.Binary, true, ct);
/// <inheritdoc /> public Task CloseAsync(Net.CloseStatusCode code, string comment = null, CancellationToken cancellationToken = default) => SystemWebSocket.CloseAsync(MapCloseStatus(code), comment ?? string.Empty, cancellationToken);