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 149 def cookies request.cookie_jar end