Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Adds Meteor.disconnect() to allow user disconnection of streams. #1151
As outlined in this discussion it may occasionally be necessary for the user to disconnect the current stream.
This pull request adds a disconnect method to _DdpClientStream that is modelled on forceDisconnect(). The difference being that it sets the status to 'offline' and allows the user to call reconnect() on the stream later. It also plumbs disconnect into the Meteor. namespace.
Some rudimentary tests are included and the feature has been manually tested to work.
Reviewed and tested. Looks good! Thanks, @zol. I've got a rebased version on the
Only thing missing I think is docs. Can you whip up some quick docs, including a new entry for Meteor.disconnected and a description of the offline state in Meteor.status?
Sweet, thanks for merging that @n1mmy. I'll crank out some docs tomorrow.
On Tuesday, 23 July 2013 at 11:44 PM, Nick Martin wrote: