registerViewerApp method

dynamic registerViewerApp(
  1. String ref,
  2. String authorization_token,
  3. String project_id
)

Implementation

registerViewerApp(String ref, String authorization_token, String project_id) {
  ref_id = ref;
  print("i am in sdk register");
  if (inCall == true) {
    print("i am in call true");
    isCallStart = 1;
  }
  Map<String, dynamic> registerjson = {
    "type": "request",
    "requestType": "register",
    "requestId": _generateMd5(
        DateTime.now().millisecondsSinceEpoch.toString() +
            tenantID +
            ref_id!),
    "projectId": project_id,
    "referenceId": ref_id,
    "authorizationToken": authorization_token,
    "socketType": 0,
    "reConnect": isCallStart
  };

  print("this is json in register request $registerjson   $requestIDType");
  _socket?.send(registerjson);
}