Class Websocket

java.lang.Object
com.vonage.client.JsonableBaseObject
com.vonage.client.video.Websocket
All Implemented Interfaces:
Jsonable

public final class Websocket extends JsonableBaseObject
Defines the properties in ConnectRequest.getWebsocket().
Since:
8.5.0
  • Method Details

    • getUri

      public URI getUri()
      A publicly reachable WebSocket URI to be used for the destination of the audio stream.
      Returns:
      The WebSocket URI.
    • getStreams

      Stream IDs for the Vonage Video streams you want to include in the WebSocket audio. If you omitted, all streams in the session will be included.
      Returns:
      The collection of stream IDs to include, or null if not specified.
    • getHeaders

      Headers to be sent to your WebSocket server with each message, with a maximum length of 512 bytes.
      Returns:
      The header key-value pairs as a Map, or null if not specified.
    • getAudioRate

      Audio sampling rate in Hz.
      Returns:
      The sample rate as an enum, or null if not specified.