With Backbone.js, you have to request data from the server explicitly in your router actions. (This is accomplished by calling fetch() on the collection.)
I'm looking for a way to get that level of control over server requests in Batman.js. To be more specific, what I'm looking to have (in pseudo-code):
Fetch Posts from /posts.json (posts) ->
iterate over posts and do something with that
Some of my models (though not all) will be updated in real-time using Socket.IO. By default, when you call find, Batman is going to make an HTTP request for the data. This obviously works well in most situations, but when you introduce real-time updates (ensuring the cached model data never gets stale), it isn't ideal - it's just wasted bandwidth.
What would the best way to go about this be?