<PackageReference Include="System.ServiceModel.Http" Version="8.1.2" />

System.ServiceModel.Channels.WebSocketTransportSettings

public const string BinaryMessageReceivedAction = "http://schemas.microsoft.com/2011/02/websockets/onbinarymessage"

public const string TextMessageReceivedAction = "http://schemas.microsoft.com/2011/02/websockets/ontextmessage"

public bool DisablePayloadMasking { get; set; }

public TimeSpan KeepAliveInterval { get; set; }

public string SubProtocol { get; set; }