# File lib/rack/websocket/handler.rb, line 10 def self.detect(env) server_software = env['SERVER_SOFTWARE'] if server_software.match(/\Athin /i) Thin else Stub end end