Denis

Results 13 comments of Denis

I see that you reject if connection disconnected in ddp.send metjod ``` this.once('disconnected', reject); ``` But the 'disconnected' event is never emitted

I also can't find the branch with the latest alpha version 25

I have fixed it here: https://github.com/uncledent/Rocket.Chat.js.SDK/tree/reject-on-ddp-close Please tell me the branch to make a pull request to

@diegolmello i have created a pull request: https://github.com/RocketChat/Rocket.Chat.js.SDK/pull/61 I would really appreciate if you could push today a new version to the npm as a new alpha! Thank you in...

So I found out, that this is an implementation problem. Pings are lost. Probably my PR has a fault on this. I will fix it and update the Pull Request.

@iconist for me the problem was that the sdk.connect call was called twice with 20ms difference, which caused a double initialization of Socket. So it pinged a wrong one.

We have the same problem, quick fix is to do ``` List.paginate({ query: query, limit: paginationLimit, fields: { fields: { "bids.bid": 0 } }) ``` This way it is excluded,...

Also a bad idea above, the _id field will disappear

If you need just the mongoose plugin which will use your mongoose model, you can try this lib: https://github.com/uncledent/mongoose-cursor-pagination-plugin It is fully based on this library, but there is the...