remote-pay-cloud
Advanced tools
Comparing version 0.0.2 to 0.0.3
{ | ||
"name": "remote-pay-cloud", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Access Clover devices through the cloud", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -268,4 +268,15 @@ var LanMethod = require("./LanMethod.js"); | ||
/** | ||
* @private | ||
* @returns {json} a break message | ||
*/ | ||
this.buildBreak = function (payload) { | ||
payload.method = LanMethod.BREAK; | ||
return this.buildRemoteMessage(LanMethod.BREAK, RemoteMessageBuilder.COMMAND, payload); | ||
} | ||
/** | ||
* @private | ||
* @returns {json} the pong message | ||
@@ -272,0 +283,0 @@ */ |
@@ -766,2 +766,20 @@ //********************************************* | ||
/** | ||
* | ||
* @param [ackId] - an optional id for the message. If set then the break will be acknowledged, | ||
* otherwise there will be no response. | ||
*/ | ||
WebSocketDevice.prototype.sendBreak = function(ackId) { | ||
var payload = { | ||
}; | ||
var lanMessage = this.messageBuilder.buildBreak(payload); | ||
// If an id is included, then an "ACK" message will be sent for this message | ||
if(ackId) lanMessage.id = ackId; | ||
this.sendMessage(lanMessage); | ||
} | ||
// | ||
@@ -1239,2 +1257,1 @@ /** | ||
} | ||
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
177549
4068