Class: Klomp::Frames::Connect
Instance Method Summary collapse
-
#initialize(options) ⇒ Connect
constructor
A new instance of Connect.
Methods inherited from Frame
#[], #[]=, #body, #body=, #dump_headers, #headers, #name, #new_headers, #stringify_headers, #to_s
Constructor Details
#initialize(options) ⇒ Connect
Returns a new instance of Connect.
78 79 80 81 82 83 84 |
# File 'lib/klomp/frames.rb', line 78 def initialize() headers['accept-version'] = '1.1' headers['host'] = ['host'] if ['host'] headers['heart-beat'] = "0,0" headers['login'] = ['login'] if ['login'] headers['passcode'] = ['passcode'] if ['passcode'] end |