Class: Vonage::Video::Signals
- Inherits:
-
Namespace
- Object
- Namespace
- Vonage::Video::Signals
- Defined in:
- lib/vonage/video/signals.rb
Instance Method Summary collapse
-
#send_to_all(session_id:, **params) ⇒ Response
Send a signal to all participants in an active Vonage Video session.
-
#send_to_one(session_id:, connection_id:, **params) ⇒ Response
Send a signal to a specific participant in an active Vonage Video session.
Instance Method Details
#send_to_all(session_id:, **params) ⇒ Response
Send a signal to all participants in an active Vonage Video session.
46 47 48 |
# File 'lib/vonage/video/signals.rb', line 46 def send_to_all(session_id:, **params) request('/v2/project/' + @config.application_id + '/session/' + session_id + '/signal', params: params, type: Post) end |
#send_to_one(session_id:, connection_id:, **params) ⇒ Response
Send a signal to a specific participant in an active Vonage Video session.
28 29 30 |
# File 'lib/vonage/video/signals.rb', line 28 def send_to_one(session_id:, connection_id:, **params) request('/v2/project/' + @config.application_id + '/session/' + session_id + '/connection/' + connection_id + '/signal', params: params, type: Post) end |