Web Getting Started
ConnectyCube helps you implement real-time chat, video chat, push notifications and user authorization to any app with ease - no server side implementation required. You can concentrate fully on your Web app development, with many helpful methods to build the chat and video chat features.
This page provides a quick overview of the SDK’s functionalities and logic, then let you go through the easy steps of implementing ConnectyCube in your own app.
Create ConnectyCube app
Register a FREE ConnectyCube account at https://connectycube.com/signup/, then create your 1st app and obtain an app credentials. These credentials will be used to identify your app.
All users within the same ConnectyCube app can communicate by chat or video chat with each other, across all platforms - iOS, Android, Web, etc.
When building a new app
If you are just starting your app and developing it from scratch, we recommend to use our Code Samples projects.
These code samples are ready-to-go apps with an appropriate functionality and simple enough that even novice developers will be able to understand them.
When integrating SDK into existing app
If you already have an app, do the following for integration:
Connect SDK
React, Angular, Vue etc.
Install the package:
and you’re ready to go:
Browser (plain HTML)
Simply connect the JS file as a normal script:
where x.x.x is the desired JS SDK version (check for Releases page for all available versions).
Then a window scoped variable called ConnectyCube
is created.
Or install the package as NPM module:
And add script to HTML file from the ‘node_modules’ folder (as a relative path):
See an example of simple application based on Webpack build
Node.js
Install the package:
and you’re ready to go:
Initialize
Initialize framework with your ConnectyCube application credentials. You can access your application credentials in ConnectyCube Dashboard:
Initialize with existing token
It can be a scenario when you might want to create a ConnectyCube session token outside of the app code, e.g. to incorporate this logic at your custom backend server.
In this case, there is a way to initialize SDK by existing ConnectyCube session token:
Also, there can be another use case when a developer wants to preserve the session between browser page refreshes.
In this case, a session can be stored to e.g. local storage and then can be restored and passed to SDK, so you do not need to re-create a new one if the session is still valid:
Configure
An additional set of configs can be passed as a 2nd argument in init
function:
Default configuration
Integrate chat and voice/video calling
Follow the API guides on how to integrate chat and calling features into your app:
SDK Changelog
The complete SDK changelog is available on ConnectyCube Javascript Releases GitHub page