Class: JanusGateway::Transport
- Inherits:
-
Object
- Object
- JanusGateway::Transport
- Includes:
- Events::Emitter
- Defined in:
- lib/janus_gateway/transport.rb
Direct Known Subclasses
Defined Under Namespace
Classes: WebSocket
Instance Method Summary collapse
- #connect ⇒ Object
- #disconnect ⇒ Object
- #is_connected? ⇒ TrueClass, FalseClass
- #run ⇒ Object
- #send(data) ⇒ Object
- #send_transaction(data) ⇒ Concurrent::Promise
- #transaction_id_new ⇒ String
Instance Method Details
#connect ⇒ Object
11 12 13 |
# File 'lib/janus_gateway/transport.rb', line 11 def connect raise("`#{__method__}` is not implemented for `#{self.class.name}`") end |
#disconnect ⇒ Object
15 16 17 |
# File 'lib/janus_gateway/transport.rb', line 15 def disconnect raise("`#{__method__}` is not implemented for `#{self.class.name}`") end |
#is_connected? ⇒ TrueClass, FalseClass
31 32 33 |
# File 'lib/janus_gateway/transport.rb', line 31 def is_connected? raise("`#{__method__}` is not implemented for `#{self.class.name}`") end |
#run ⇒ Object
7 8 9 |
# File 'lib/janus_gateway/transport.rb', line 7 def run raise("`#{__method__}` is not implemented for `#{self.class.name}`") end |
#send(data) ⇒ Object
20 21 22 |
# File 'lib/janus_gateway/transport.rb', line 20 def send(data) raise("`#{__method__}` is not implemented for `#{self.class.name}`") end |
#send_transaction(data) ⇒ Concurrent::Promise
26 27 28 |
# File 'lib/janus_gateway/transport.rb', line 26 def send_transaction(data) raise("`#{__method__}` is not implemented for `#{self.class.name}`") end |
#transaction_id_new ⇒ String
36 37 38 39 40 41 42 |
# File 'lib/janus_gateway/transport.rb', line 36 def transaction_id_new transaction_id = '' 24.times do transaction_id << (65 + rand(25)).chr end transaction_id end |