Skip to content

Commit fb8fad3

Browse files
committed
Return the subscription ID
1 parent ca0471a commit fb8fad3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/ddp-client.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,8 @@ DDPClient.prototype.subscribe = function(name, params, callback) {
329329
self._callbacks[id] = callback;
330330

331331
self._send({msg: 'sub', id: id, name: name, params: params});
332+
333+
return id;
332334
};
333335

334336
DDPClient.prototype.unsubscribe = function(id) {

0 commit comments

Comments
 (0)