Class: Thin::Request
- Inherits:
 - 
      Object
      
        
- Object
 - Thin::Request
 
 
- Defined in:
 - lib/faye/thin_extensions.rb
 
Constant Summary collapse
- WEBSOCKET_RECEIVE_CALLBACK =
 'websocket.receive_callback'.freeze
Instance Method Summary collapse
Instance Method Details
#websocket? ⇒ Boolean
      55 56 57 58 59  | 
    
      # File 'lib/faye/thin_extensions.rb', line 55 def websocket? @env['HTTP_CONNECTION'] and @env['HTTP_CONNECTION'].split(/\s*,\s*/).include?('Upgrade') and ['WebSocket', 'websocket'].include?(@env['HTTP_UPGRADE']) end  |