module EventMachine::Protocols::LineText2

def unbind

be aware that they may get a short buffer.
when in sized text mode. User overrides of #receive_binary_data need to
In case of a dropped connection, we'll send a partial buffer to user code
def unbind
  @lt2_mode ||= nil
  if @lt2_mode == :text and @lt2_textpos > 0
    receive_binary_data @lt2_textbuffer.join
  end
end