Hi,
Great news! Our Web SDK with support of authorization using QR-code is here! Pay attention to the changelog:
New API:
- new method to update a contact’s name in ContactList:
ConnectyCube.chat.contactList.updateName({ userId: userId, name: userName }, callback)
; - Config
chat.contactList.subscriptionMode.mutual: false
. Use it to switch off a mutual contact list subscription mode; - Method to create a Web session
ConnectyCube.createWebSession({long: 1}, function(error, qrCodeSVG) { ... })
(useful for QR code login at Web part, like in WhatsApp) - Method to check a Web session state
ConnectyCube.checkWebSessionUntilUpgrade(function(timeoutError, upgradedSession) { ... })
(useful for QR code login at Web part, like in WhatsApp) - Method to upgrade a Web session
ConnectyCube.upgradeWebSession(function(error) { ... })
(useful for QR code login at Web part, like in WhatsApp)
Fixes:
- The
ConnectyCube.chat.sendIsStopTypingStatus(callback)
is fixed.
Breaking API changes:
streamManagement.enable: true
config is replaced withchat.streamManagment.enable: true
chatReconnectionTimeInterval: 5
config is replaced withchat.reconnectionTimeInterval: 5
- Both methods
ConnectyCube.chat.contactList.add
andConnectyCube.chat.contactList.confirm
now accept an object as a 1st parameter with the following format:{ userId: userId, name: userName }
, instead of ajidOrUserId
string
New SDK is available on our GitHub page.