Project contains the following features implemented:
- User authorization
- Chat dialogs creation
- 1-1 messaging
- Group messaging
- Sent/Delivered/Read statuses
- ‘Is typing’ statuses
- File attachments
ConnectyCube JS SDK getting started - https://developers.connectycube.com/js
ConnectyCube Chat API documentation - https://developers.connectycube.com/js/messaging
TBA
To make the sample works for your own app, please do the following:
-
Register new account and application at
https://admin.connectycube.com
and then put Application credentials from 'Overview' page intoconfig.js
file:const CC_CREDENTIALS = { 'appId': 0, 'authKey': '', 'authSecret': '' };
-
At
https://admin.connectycube.com
, create some users in 'Users' module and put them intoconfig.js
file:const CC_USERS = [ { id: 0, login: "", password: "" }, { id: 1, login: "", password: "" }, ];
-
(Optional) If you are at Enterprise plan - provide your API server and Chat server endpoints at
config.js
file to point the sample against your own server:const CC_CONFIG = { endpoints: { api: "", chat: "" }, ... };
-
Run
index.html
and enjoy!