Skip to content

Commit

Permalink
Merge pull request #8 from jareddlc/PUBSUB-13
Browse files Browse the repository at this point in the history
[PUBSUB-13] change ping/pong
  • Loading branch information
pkclark committed Dec 21, 2016
2 parents 41a6225 + e569a03 commit 999d7a7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -674,9 +674,9 @@ PubSubClient.prototype._reconnect = function() {
socket.emit('register', toSubArray(self.eventSubscriptions));
self._runQueue();
});
socket.on('ping', function () {
socket.on('pubsub:ping', function () {
debug('received ping, sending pong');
socket.emit('pong');
socket.emit('pubsub:pong');
});
});
});
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "appc-pubsub",
"version": "0.0.37",
"version": "0.1.0",
"description": "AppC pubsub client library",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 999d7a7

Please sign in to comment.