# File lib/protocols/stomp.rb, line 75 75: def send_frame verb, headers={}, body="" 76: ary = [verb, "\n"] 77: headers.each {|k,v| ary << "#{k}:#{v}\n" } 78: ary << "content-length: #{body.to_s.length}\n" 79: ary << "content-type: text/plain; charset=UTF-8\n" 80: ary << "\n" 81: ary << body.to_s 82: ary << "\0" 83: send_data ary.join 84: end