# File lib/protocols/stomp.rb, line 98 98: def send_frame verb, headers={}, body="" 99: ary = [verb, "\n"] 100: headers.each {|k,v| ary << "#{k}:#{v}\n" } 101: ary << "content-length: #{body.to_s.length}\n" 102: ary << "content-type: text/plain; charset=UTF-8\n" 103: ary << "\n" 104: ary << body.to_s 105: ary << "\0" 106: send_data ary.join 107: end