-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to get new item from list ? #54
Comments
Try using |
@abalandin thank you for the tip! One scenario more, when the server is down and for example on restart or crash the clients try to reconnect. Server is back online and then the "reon" event is thrown, should the |
A
On Fri, May 1, 2015 at 2:35 AM, Risto Novik [email protected]
|
Guys, if you have any suggestions regarding the API, it is the right time. |
@riston Events are emitted once operations arrive. Even if the server is dead, ops still may arrive. For example, from another tab in the same browser. (Not sure I fully understand the question.) |
@gritzko, @abalandin could you explain more about the flow behind when and what event is thrown ? For the collection there is a mixin called CollectionMethodsMixin with following methods:
When the server crashes or client side user is in offline state. Later when the connection is restored or the server is restarted. What are the events which are thrown on the client, how to get list of objects that have changed ? The |
Regarding server crash, that is no different from a regular case. model.on('set+', function (ev) {
if (ev.constructor===Array) {
// that is an event batch
}
}); |
I am using following model:
ItemList is a vector, which consists of model items. When listen to the "items" changes I get back the reference to object but the object itself is empty.
This case occurs when User A adds object the other User B session listens the event but it's empty or not yet synchronized. How to fix such issue ?
The text was updated successfully, but these errors were encountered: