cordova-plugin-mas-connecta
Advanced tools
Comparing version
@@ -0,1 +1,16 @@ | ||
# Version 2.1.00 | ||
### Bug fixes | ||
- None | ||
### New features | ||
- None | ||
### Deprecated methods | ||
- None | ||
### Removed methods | ||
- User-to-User messaging removed. Only support for MQTT connect available. | ||
# Version 2.0.00 | ||
@@ -2,0 +17,0 @@ |
@@ -0,0 +0,0 @@ # Contribute to the Cordova Mobile SDK |
/*global document */ | ||
(function() { | ||
var source = document.getElementsByClassName('prettyprint source linenums'); | ||
var i = 0; | ||
var lineNumber = 0; | ||
var lineId; | ||
var lines; | ||
var totalLines; | ||
var anchorHash; | ||
(() => { | ||
const source = document.getElementsByClassName('prettyprint source linenums'); | ||
let i = 0; | ||
let lineNumber = 0; | ||
let lineId; | ||
let lines; | ||
let totalLines; | ||
let anchorHash; | ||
@@ -18,3 +18,3 @@ if (source && source[0]) { | ||
lineNumber++; | ||
lineId = 'line' + lineNumber; | ||
lineId = `line${lineNumber}`; | ||
lines[i].id = lineId; | ||
@@ -21,0 +21,0 @@ if (lineId === anchorHash) { |
{ | ||
"name": "cordova-plugin-mas-connecta", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"description": "Cordova MAS Connecta Plugin", | ||
@@ -5,0 +5,0 @@ "cordova": { |
# Cordova-MAS-Connecta | ||
Cordova-MAS-Connecta is the core messaging framework of the Cordova Mobile SDK, which is part of the CA Mobile API Gateway. It gives developers the ability to create social collaborative apps where users can message and send data to each other. | ||
Cordova-MAS-Connecta is the core messaging framework of the Layer7 Cordova Mobile SDK, which is part of the Layer7 Mobile API Gateway. It gives developers the ability to create social collaborative apps where users can subscribe and publish to a topic directly connecting to a MQTT broker, or via Layer7 Mobile API Gateway serving as a MQTT proxy. | ||
********************************************************* | ||
@@ -9,8 +9,7 @@ | ||
- Secure and reliable User to User messaging | ||
- MQTT client with built-in mutual SSL and OAuth support | ||
********************************************************* | ||
- MQTT client with built-in mutual SSL | ||
************************************** | ||
## Get Started | ||
Follow our [documentation](http://techdocs.broadcom.com/content/broadcom/techdocs/us/en/ca-enterprise-software/layer7-api-management/mobile-sdk-for-ca-mobile-api-gateway/2-0.html) to install Cordova and set up iOS and Android projects. | ||
Follow our [documentation](https://techdocs.broadcom.com/content/broadcom/techdocs/us/en/ca-enterprise-software/layer7-api-management/mobile-sdk-for-ca-mobile-api-gateway/2-1/Cordova/Cordova_2-1.html) to install Cordova and set up iOS and Android projects. | ||
********************************************************* | ||
@@ -26,3 +25,3 @@ | ||
The Cordova reference documents are available at our [techdocs]( http://mas.ca.com/docs/cordova/latest/sdk/) site. | ||
The Cordova reference documents are available at our [techdocs]( https://techdocs.broadcom.com/content/broadcom/techdocs/us/en/ca-enterprise-software/layer7-api-management/mobile-sdk-for-ca-mobile-api-gateway/2-1/Cordova/CordovaTR_2-1/MASConnecta.html) site. | ||
@@ -29,0 +28,0 @@ Example: |
@@ -0,0 +0,0 @@ /** |
@@ -14,67 +14,4 @@ /* | ||
/** | ||
* @class MASPluginUser | ||
* @hideconstructor | ||
* @classdesc An extension of cordova-plugin-mas-core.MASPluginUser that exposes the new APIs for MAS Messaging. The methods are static hence can be called directly on MASPluginUser class. | ||
*/ | ||
var MASPluginUser = require("cordova-plugin-mas-core.MASPluginUser"); | ||
{ | ||
/** | ||
* Subscribes (starts Listening) to user's own custom topic. Topic name defaults to userid of the logged in user | ||
* @memberOf MASPluginUser | ||
* @function startListeningToMyMessages | ||
* @param {successCallbackFunction} successHandler user defined success callback that is invoked on success scenario. | ||
* @param {errorCallbackFunction} errorHandler user defined error callback that is invoked on failure scenario. | ||
* @example | ||
* MASConnectaPlugin.MASUser.startListeningToMyMessages(successHandler, errorHandler); | ||
*/ | ||
MASPluginUser.startListeningToMyMessages = function(successHandler, errorHandler) { | ||
return Cordova.exec(successHandler, errorHandler, "MASConnectaPlugin", "startListeningToMyMessages", []); | ||
}; | ||
/** | ||
* Unsubscribes (stop Listening) to user's own custom topic. Topic name defaults to userid of the logged in user. | ||
* @memberOf MASPluginUser | ||
* @function stopListeningToMyMessages | ||
* @param {successCallbackFunction} successHandler user defined success callback that is invoked on success scenario. | ||
* @param {errorCallbackFunction} errorHandler user defined error callback that is invoked on failure scenario. | ||
* @example | ||
* MASConnectaPlugin.MASUser.stopListeningToMyMessages(successHandler, errorHandler); | ||
*/ | ||
MASPluginUser.stopListeningToMyMessages = function(successHandler, errorHandler) { | ||
return Cordova.exec(successHandler, errorHandler, "MASConnectaPlugin", "stopListeningToMyMessages", []); | ||
}; | ||
/** | ||
* Send message to a user | ||
* @memberOf MASPluginUser | ||
* @function sendMessageToUser | ||
* @param {successCallbackFunction} successHandler user defined success callback that is invoked on success scenario. | ||
* @param {errorCallbackFunction} errorHandler user defined error callback that is invoked on failure scenario. | ||
* @param {string} message message to be sent (String / MASPluginMessage) | ||
* @param {string} userObjectId Unique ID of the user to whom the message is intended to | ||
* @example | ||
* MASConnectaPlugin.MASUser.sendMessageToUser(successHandler, errorHandler,message,userObjectId); | ||
*/ | ||
MASPluginUser.sendMessageToUser = function(successHandler, errorHandler, message, userObjectId) { | ||
return Cordova.exec(successHandler, errorHandler, "MASConnectaPlugin", "sendMessageToUser", [message, userObjectId]); | ||
}; | ||
/** | ||
* Send message to a user on a topic | ||
* @memberOf MASPluginUser | ||
* @function sendMessageToUserOnTopic | ||
* @param {successCallbackFunction} successHandler user defined success callback that is invoked on success scenario. | ||
* @param {errorCallbackFunction} errorHandler user defined error callback that is invoked on failure scenario. | ||
* @param {string} message message to be sent (String / MASPluginMessage) | ||
* @param {string} topicName topic on which the user wants to send the message | ||
* @param {string} userObjectId Unique ID of the user to whom the message is intended to | ||
* @example | ||
* MASConnectaPlugin.MASUser.sendMessageToUserOnTopic(successHandler, errorHandler,message, userObjectId, topicName); | ||
*/ | ||
MASPluginUser.sendMessageToUserOnTopic = function(successHandler, errorHandler, message, userObjectId, topicName) { | ||
return Cordova.exec(successHandler, errorHandler, "MASConnectaPlugin", "sendMessageToUserOnTopic", [message, userObjectId, topicName]); | ||
}; | ||
} | ||
/** | ||
@@ -81,0 +18,0 @@ * @class MASConnectaPlugin |
@@ -0,0 +0,0 @@ /* |
@@ -0,0 +0,0 @@ /* |
@@ -21,8 +21,2 @@ /* | ||
// Initialize the client | ||
if (this.clientId) { | ||
this.initializeMQTTClient(function(){}, function(){}, this.clientId, (this.masMQTTConstants ? this.masMQTTConstants.cleanSession : true)); | ||
} | ||
/** | ||
@@ -29,0 +23,0 @@ * Initializes the MQTT client. |
@@ -0,0 +0,0 @@ /* |
@@ -0,0 +0,0 @@ /* |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1250588
-3.61%58
-1.69%1550
-12.58%60
-1.64%