has('usr_id') ? $session->get('usr_id') : null; $rights = $session->has('websockets_rights') ? $session->get('websockets_rights') : []; return new Consumer($usrId, $rights);; } }