How to use the @cometchat-pro/chat.CometChat.Call function in @cometchat-pro/chat

To help you get started, we’ve selected a few @cometchat-pro/chat examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github cometchat-pro-samples / javascript-reactjs-chat-app / src / js / lib / cometchat / ccManager.js View on Github external
static getCall(uid,callType,userType){
    if(userType == "user"){
      return new CometChat.Call(uid, callType, CometChat.RECEIVER_TYPE.USER);
    }else{
      return new CometChat.Call(uid, callType, CometChat.RECEIVER_TYPE.GROUP);
    }
  }
github cometchat-pro-samples / javascript-reactjs-chat-app / src / js / lib / cometchat / ccManager.js View on Github external
static getCall(uid,callType,userType){
    if(userType == "user"){
      return new CometChat.Call(uid, callType, CometChat.RECEIVER_TYPE.USER);
    }else{
      return new CometChat.Call(uid, callType, CometChat.RECEIVER_TYPE.GROUP);
    }
  }