class Thin::Connection

def process

def process
  if @serving != :websocket and @request.websocket?
    @serving = :websocket
  end
  if @request.socket_connection?
    @request.env['em.connection'] = self
    @response.persistent!
    @response.async = true
  end
  thin_process
end