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

Any plan to support express3?

phzbox opened this issue · comments

Any plan to support express3?

What's not working with Express 3? Have a look at the Socket.IO portion of this: https://github.com/visionmedia/express/wiki/Migrating-from-2.x-to-3.x

The examples are still using Express 2 but that could probably be updated now that Express 3 seems pretty finalized.

When you create the server in express 3 something like:

var serv = http.createServer(app).listen( ..... );

if you assign it to a object you can the pass that object to socket.io/backbone.io and everything seems to work fine for me.

var io = backboneio.listen(serv, ..... );

Hi, yes you are totally right. What wasn't working anymore was a way to share the session between connect/express and socket.io. Nothing to do with backbone.io, my mistake.