Table of Contents

Class ChannelWebSocket

Namespace
Vonage.Users
Assembly
Vonage.dll

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

Uri string

The WebSocket endpoint URI.

ContentType string

The audio content type (e.g., "audio/l16;rate=16000").

Headers Dictionary<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

string

Headers

Custom headers to include in the WebSocket connection.

[JsonPropertyName("headers")]
[JsonPropertyOrder(2)]
public Dictionary<string, string> Headers { get; init; }

Property Value

Dictionary<string, string>

Uri

The WebSocket endpoint URI.

[JsonPropertyName("uri")]
[JsonPropertyOrder(0)]
public string Uri { get; init; }

Property Value

string