// Copyright © WireMock.Net
using WireMock.Matchers.Request;

namespace WireMock.RequestBuilders;

/// <summary>
/// The BodyRequestBuilder interface.
/// </summary>
public interface IWebSocketRequestBuilder : IRequestMatcher
{
    /// <summary>
    /// Gets a value indicating whether the connection uses the WebSocket protocol.
    /// </summary>
    bool IsWebSocket { get; }

    /// <summary>
    /// Match WebSocket upgrade with optional protocols.
    /// </summary>
    IRequestBuilder WithWebSocketUpgrade(params string[] protocols);
}