in server.js [86:110]
ClientRequestToken: uuidv4(),
// Specify the media region (where the meeting is hosted).
// In this case, we use the region selected by the user.
MediaRegion: defaultRegion,
// Any meeting ID you wish to associate with the meeting.
// For simplicity here, we use the meeting title.
ExternalMeetingId: requestUrl.query.title.substring(0, 64),
})
.promise();
}
// Fetch the meeting info
const meeting = meetingTable[requestUrl.query.title];
// Create new attendee for the meeting
const attendee = await chime
.createAttendee({
// The meeting ID of the created meeting to add the attendee to
MeetingId: meeting.Meeting.MeetingId,
// Any user ID you wish to associate with the attendee.
// For simplicity here, we use a random id for uniqueness
// combined with the name the user provided, which can later
// be used to help build the roster.
ExternalUserId: `${uuidv4().substring(0, 8)}#${