Class: Vonage::Video::WebSocket
- Inherits:
-
Namespace
- Object
- Namespace
- Vonage::Video::WebSocket
- Defined in:
- lib/vonage/video/web_socket.rb
Instance Method Summary collapse
-
#connect(session_id:, token:, websocket:) ⇒ Response
Start an audio connector websocket connection.
Instance Method Details
#connect(session_id:, token:, websocket:) ⇒ Response
Start an audio connector websocket connection
53 54 55 56 57 58 59 60 61 62 63 64 65 66 |
# File 'lib/vonage/video/web_socket.rb', line 53 def connect(session_id:, token:, websocket:) raise ArgumentError, 'websocket must be a Hash' unless websocket.is_a?(Hash) raise ArgumentError, 'websocket must contain a uri' unless websocket.key?(:uri) request( '/v2/project/' + @config.application_id + '/connect', params: { sessionId: session_id, token: token, websocket: camelcase(websocket) }, type: Post ) end |