Rocket.Chat.js.SDK
Rocket.Chat.js.SDK copied to clipboard
methodCall not getting rejected
React Native When doing method call on being offline, the call never gets rejected.
return this.sdk.methodCall(
type ? 'createPrivateGroup' : 'createChannel',
name,
users,
readOnly,
{},
{ broadcast }
);
It stays unresolved for ever. Any idea why?
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
@uncledent Nice! Open to multiple-clients
@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 advance!