function ioListenerConnectedUsersReceived(payload) {
		const { arrayOfUsers } = payload;
		const newMap = new Map();
		arrayOfUsers.forEach((user) => newMap.set(user, user));
		setConnectedUsers(newMap);
	}
/**
	 * Listener function when connected users changes
	 * @param {Object} payload
	 */
Listener function when connected users changes
@param {Object} payload
Listener function when connected users changes @param { Object } payload
function ioListenerConnectedUsersReceived(payload) {
		const { arrayOfUsers } = payload;
		const newMap = new Map();
		arrayOfUsers.forEach((user) => newMap.set(user, user));
		setConnectedUsers(newMap);
	}
function ioListenerConnectedUsersReceived ( payload ) { const { arrayOfUsers } = payload ; const newMap = new Map ( ) ; arrayOfUsers . forEach ( ( user ) => newMap . set ( user , user ) ) ; setConnectedUsers ( newMap ) ; }
Listener function when connected users changes
 @param {Object} payload
Listener function when connected users changes @param { Object } payload