instance method request

Ruby on Rails edge

Since edge

Signature

request()

The request that initiated the WebSocket connection is available here. This gives access to the environment, cookies, etc.

Source
# File actioncable/lib/action_cable/server/socket.rb, line 66
      def request
        @request ||= begin
          environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application
          ActionDispatch::Request.new(environment || env)
        end
      end

Defined in actioncable/lib/action_cable/server/socket.rb line 66 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionCable::Server::Socket

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close