Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
css
img
js
README.md
index.html

README.md

ConnectyCube TextChat code sample

This README introduces ConnectyCube Chat code sample for browser like environment.

Project contains the following features implemented:

  • 1-1 messaging
  • Group messaging
  • Sent/Delivered/Read statuses
  • ‘Is typing’ statuses
  • File attachments

Original integration guide and API documentation - https://developers.connectycube.com/js/messaging

Setup

  1. Register new account and application at https://admin.connectycube.com and then put Application credentials from 'Overview' page into config.js file:

    const CC_CREDENTIALS = {
        'appId': 0,
        'authKey': '',
        'authSecret': ''
    };
  2. At https://admin.connectycube.com, create from 2 to 4 users in 'Users' module and put them into config.js file:

    const CC_USERS = [
        {
          id: 0,
          login: "",
          password: ""
        },
        {
          id: 1,
          login: "",
          password: ""
        },
    ];
  3. (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: ""
        },
        ...
    };
  4. Run index.html and enjoy!