Table of Contents

Class WebsocketEndpoint

Namespace
Vonage.Voice.Nccos.Endpoints
Assembly
Vonage.dll

Represents a WebSocket endpoint for streaming audio to and from a WebSocket server.

public class WebsocketEndpoint : Endpoint
Inheritance
WebsocketEndpoint
Inherited Members

Constructors

WebsocketEndpoint()

public WebsocketEndpoint()

Properties

Authorization

Optional configuration defining how the Authorization HTTP header is set in the WebSocket opening handshake.

[JsonProperty("authorization", Order = 3)]
public WebsocketAuthorization Authorization { get; set; }

Property Value

WebsocketAuthorization

ContentType

The internet media type for the audio being streamed. Must be audio/l16;rate=16000 or audio/l16;rate=8000.

[JsonProperty("content-type", Order = 1)]
public string ContentType { get; set; }

Property Value

string

Headers

An object containing custom metadata to include as headers in the WebSocket connection request.

[JsonProperty("headers", Order = 2)]
public object Headers { get; set; }

Property Value

object

Uri

The URI of the WebSocket server to stream audio to, e.g. wss://example.com/socket.

[JsonProperty("uri", Order = 0)]
public string Uri { get; set; }

Property Value

string