Class: OpenTok::WebSocket
- Inherits:
-
Object
- Object
- OpenTok::WebSocket
- Defined in:
- lib/opentok/websocket.rb
Instance Method Summary collapse
-
#connect(session_id, token, websocket_uri, opts = {}) ⇒ Object
Starts an Audio Connector WebSocket connection to send audio from a Vonage Video API session to a WebSocket URI.
-
#initialize(client) ⇒ WebSocket
constructor
A new instance of WebSocket.
Constructor Details
#initialize(client) ⇒ WebSocket
Returns a new instance of WebSocket.
33 34 35 |
# File 'lib/opentok/websocket.rb', line 33 def initialize(client) @client = client end |
Instance Method Details
#connect(session_id, token, websocket_uri, opts = {}) ⇒ Object
Starts an Audio Connector WebSocket connection to send audio from a Vonage Video API session to a WebSocket URI. See the / OpenTok Audio Connector developer guide.
29 30 31 |
# File 'lib/opentok/websocket.rb', line 29 def connect(session_id, token, websocket_uri, opts = {}) response = @client.connect_websocket(session_id, token, websocket_uri, opts) end |