cookies()
The cookies of the request that initiated the WebSocket connection. Useful for performing authorization checks.
# File actioncable/lib/action_cable/connection/base.rb, line 159 def cookies # :doc: request.cookie_jar end