in Website/src/containers/Home/HomeContainer.tsx [103:139]
meeting: graphqlify(currentMeeting),
},
});
} catch (err) {
console.log("err", err);
}
};
const startChimeCall = async () => {
setCallStarting(true);
const createChimeResult: any = await chimeServiceProvider.createChimeSession();
const meeting = createChimeResult.Meeting;
const attendee = createChimeResult.Caller;
const joinData = {
meetingInfo: meeting,
attendeeInfo: attendee,
};
// Use the join API to create a meeting session
await meetingManager.join(joinData);
// At this point you can let users setup their devices, or
// start the session immediately
await meetingManager.start();
setShowChimeChat(true);
setCallStarting(false);
// notify logged-in users of a user wanting to chat via a
// dummy graphql mutation - pass the meeting details as
// stringified json
try {
await appSyncClient.mutate({
mutation: chimeSessionMutation,
variables: {