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
46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
# File 'lib/vonage/video/web_socket.rb', line 46 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 |