I'm using backbone.js with websockets and sending data to the server based on events.
Is it possible to design/rewrite Backbone.sync to transport model changes to the server in a normalized way?
Any general examples of this would be great, then I can figure out how to integrate it with my server-side methods.
Thanks!
I would start with the documentation and the annotated source for the Backbone.Sync function.
Then, see how the "local storage" module modifies Backbone.Sync to store locally instead of to the server as an example of overriding behavior.
Perhaps, this Stack Overflow Question will also help.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With