kandy-cpaas2-sample-group-chat
Group chat app is used to create communication channel among multiple users via Chat APIs
Group Chat
This app is used to create a communication between different participants on one group.
User Manual
- create an account on AT&T portal via Register now for a free account.
- Open 2 instances of
index.html in the browser for User1 and User2.
- Enter the server URL, for e.g.,
- Choose to get accessToken by Password Grant flow or Client Credentials flow.
- Login using two different users’ credentials in both the browser windows.
- For Password Grant flow, enter
- clientId
- emailId
- password
- For Client Credentials Grant flow, enter
- Click Login
- After successful login you will get an accessToken for User1 and User2
- Click “Subscribe” button in both the browser windows to create the webrtc channel.
- Click “create Group” to create a group with n number of participants in it.
- User2 should be the same user which is included as a participant in a group created by User1.
- Users can add new participants also in the existing group by clicking on “Add Participant”.
- Click on “Fetch Groups from Server” where user can get the list of all the groups created.
- Click on “Get Groups” to get the number of groups created.
- Click on “Get Group By ID” to get the group ID of recently created group.
- Click on “Get Participants By GroupID” to get the list of all the participants present in the recent group.
- Once User2 has accepted the invite from User1 by clicking on “Accept Invite”, User2 can also leave the group by clicking on “Leave GroupByID”.
- Click on “List Invitations” will get the list of all the invites sent by all the groups.
- Click on “Reject Invite” will reject the invitation received by group ID.
- Click on “Delete GroupByID” will delete the current group from the list.
- Click on “Fetch Conversations in a group” will fetch all the conversations being held within group members of particula group ID.
- Once invite has been accepted, User1 can initiate group chat by clicking on “createGroupChat”, which creates a new conversation with the required participant.
- After successful creation of group chat, User1 can now send message which received at User2 end, and can continue chat to and fro.
Notes
Then, open index.html in the browser to view the app.
Branching strategy
To learn about the branching strategy, contribution & coding conventions followed in the project, please refer GitFlow based branching strategy for your project repository