# File lib/em-websocket/framing76.rb, line 99 def send_text_frame(data) debug [:sending_text_frame, data] ary = ["\x00", data, "\xff"] ary.collect{ |s| s.force_encoding('UTF-8') if s.respond_to?(:force_encoding) } @connection.send_data(ary.join) end