Features Developers Pricing
Company
Request demo Log in Sign up

Reading time 0 mins

Linked-in

Announcing 2nd generation of SDKs for developing chat and video chat apps for JavaScript, Cordova, Node, React Native and NativeScript apps.

We are proud to announce JavaScript SDK 2.0 and React Native SDK 2.0 are generally available!

With this new release, we introduce a new API for requests based on Promises, so no more callback hells! Also we did a complete re-wrote of SDK’s code using modern JavaScript lang syntax: classes, promises, arrow functions, let/const and so on. Besides this, we switched to a universal XMPP library for chat across all platforms which allowed us to reduce SDK size up to 15%.

Just like the 1.x version, JS SDK 2.0 supports all the most popular environments like Browser, Cordova/Ionic, Node, React Native, NativeScript and Electron, so basically we cover all of the existing platforms where JavaScript lang can be used. This brings a huge opportunity to build cross-platform apps and share the same codebase across Web, Mobile and Desktop apps.    

Changelog

  • New Promises based API (removed old callbacks based API)
  • Complete rewrote of SDK code using modern JavaScript lang syntax: classes, promises, arrow functions, let/const
  • Use universal XMPP library for chat across all platforms (Browser, Cordova, Node, React Native, NativeScript)
  • Reduced connectycube.min.js size for 15%
  • Multiparty conference calling API is now supported by React Native SDK. 
  • Callbacks to count the amount of data were read/wrote by Chat.
    const CONFIG = { on:{ xmppDataWrite: size => {}, xmppDataRead:size => {} }}
    This is useful for a feature where you need to show a Data Usage screen in your app.
  • API to get a user’s last activity status in a real time:
    ConnectyCube.chat.subscribeToUserLastActivityStatus(userId);
    ConnectyCube.chat.unsubscribeFromUserLastActivityStatus(userId);

Download SDKs

  • npm install connectycube –save to install JS SDK for Browser, Cordova/Ionic, Node, NativeScript and Electron.
  • npm install react-native-connectycube –save to install React Native SDK

References

Help and Support

If you have any questions or need help with anything ConnectyCube, don’t hesitate to reach us at support@connectycube.com or contact via Contact form

We can’t wait to see what you build!

 

Get started for FREE

Unlock the benefits of tomorrow by signing up today.

Don't wait, take the first step towards a brighter future with us!