Class: Chromecast::Channel::Heartbeat
- Defined in:
- lib/chromecast/channel/heartbeat.rb
Constant Summary collapse
- NAMESPACE =
'urn:x-cast:com.google.cast.tp.heartbeat'
Instance Attribute Summary
Attributes inherited from Base
#connection, #namespace, #type
Instance Method Summary collapse
-
#initialize(connection) ⇒ Heartbeat
constructor
A new instance of Heartbeat.
- #ping ⇒ Object
- #pong ⇒ Object
Methods inherited from Base
Constructor Details
Instance Method Details
#ping ⇒ Object
10 11 12 |
# File 'lib/chromecast/channel/heartbeat.rb', line 10 def ping send(type: 'PING') end |
#pong ⇒ Object
14 15 16 |
# File 'lib/chromecast/channel/heartbeat.rb', line 14 def pong send(type: 'PONG') end |