Skip to content

Commit

Permalink
Added a setsecret api method.
Browse files Browse the repository at this point in the history
  • Loading branch information
Codesleuth committed Jun 22, 2015
1 parent ca8b07c commit 2119dff
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion index.js
Expand Up @@ -22,10 +22,14 @@ function ConnectClient(url, secret, onpush, onsecret) {
function PushClient() {
}

PushClient.prototype.disconnect = function() {
PushClient.prototype.disconnect = function () {
this.socket.disconnect();
};

PushClient.prototype.setsecret = function (secret) {
this.socket.emit('secret', secret);
};


module.exports.create = function (options) {
options = options || {};
Expand Down

0 comments on commit 2119dff

Please sign in to comment.