app/channels/application_cable/connection.rb
# new connection is instantiated every time a consumer sends the initial WebSocket request forming a connection-consumer pair, this is the place to authorize the incoming request, and find the current user.
new connection is instantiated every time a consumer sends the initial WebSocket request forming a connection-consumer pair, this is the place to authorize the incoming request, and find the current user.
new connection is instantiated every time a consumer sends the initial WebSocket request forming a connection - consumer pair this is the place to authorize the incoming request and find the current user .
def find_verified_user
        if verified_user = env['warden'].user
          verified_user
        else
          reject_unauthorized_connection
        end
      end
def find_verified_user if verified_user = env [ 'warden' ] . user verified_user else reject_unauthorized_connection end end
new connection is instantiated every time a consumer sends the initial WebSocket request forming a connection-consumer pair, this is the place to authorize the incoming request, and find the current user.
new connection is instantiated every time a consumer sends the initial WebSocket request forming a connection - consumer pair this is the place to authorize the incoming request and find the current user .