Class ChannelWebSocket
Represents a WebSocket channel for real-time audio streaming.
public record ChannelWebSocket : IEquatable<ChannelWebSocket>
- Inheritance
-
ChannelWebSocket
- Implements
- Inherited Members
Constructors
ChannelWebSocket(string, string, Dictionary<string, string>)
Represents a WebSocket channel for real-time audio streaming.
public ChannelWebSocket(string Uri, string ContentType, Dictionary<string, string> Headers)
Parameters
UristringThe WebSocket endpoint URI.
ContentTypestringThe audio content type (e.g., "audio/l16;rate=16000").
HeadersDictionary<string, string>Custom headers to include in the WebSocket connection.
Properties
ContentType
The audio content type (e.g., "audio/l16;rate=16000").
[JsonPropertyName("content-type")]
[JsonPropertyOrder(1)]
public string ContentType { get; init; }
Property Value
Headers
Custom headers to include in the WebSocket connection.
[JsonPropertyName("headers")]
[JsonPropertyOrder(2)]
public Dictionary<string, string> Headers { get; init; }
Property Value
Uri
The WebSocket endpoint URI.
[JsonPropertyName("uri")]
[JsonPropertyOrder(0)]
public string Uri { get; init; }