Re-using Backbone.js Models on the server with Node.js and Socket.io to build real-time apps | &yet | the blog

So, now we can quickly and easily turn an entire application’s state into a simple JS object that can be JSON stringified and restored or persisted in a database, or in localstorage, or sent across the wire. Also, if we have these serialization function in our base model we can selectively serialize any portion of the nested application structure.

Top of Page