class Faye::WebSocket::RainbowsClient

def on_read(data)

def on_read(data)
  if @state == :body and websocket? and @hp.body_eof?
    @state = :websocket
    @input.rewind
    app_call StringIO.new(@buf)
  else
    super
  end
end