Class: OpenTok::Signals
- Inherits:
-
Object
- Object
- OpenTok::Signals
- Defined in:
- lib/opentok/signals.rb
Overview
A class for working with OpenTok signals.
Instance Method Summary collapse
-
#send(session_id, connectionId = "", options = {}) ⇒ Object
Sends a signal to clients connected to an OpenTok session.
Instance Method Details
#send(session_id, connectionId = "", options = {}) ⇒ Object
Sends a signal to clients connected to an OpenTok session.
You can send a signal to all valid connections in a session or to a specific connection of a session.
For more information on signaling, see https://tokbox.com/developer/rest/#send_signal.
field to group and filter signals. It is a property of the Signal object received by the client(s).
Contains the main information to be sent in the signal. It is a property of the Signal object received by the client(s).
40 41 42 43 44 |
# File 'lib/opentok/signals.rb', line 40 def send(session_id, connectionId = "", = {}) raise ArgumentError, "session_id not provided" if session_id.to_s.empty? response = @client.signal(session_id, connectionId, ) (200..300).include? response.code end |