scttnlsn / backbone.io

Backbone.js sync via Socket.IO

Home Page:http://scttnlsn.github.io/backbone.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how can I synchronize 2 collections?

guironne opened this issue · comments

I must define 2 backend?

var backend = backboneio.createBackend();
backend.use(backboneio.middleware.memoryStore());
backboneio.listen(app, { mybackend: backend });

var backend2 = backboneio.createBackend();
backend2.use(backboneio.middleware.memoryStore());
backboneio.listen(app, { mybackend2: backend2 });

Client-side collections can be synchronized by sharing the same server-side backend.