socketio / socket.io

Realtime application framework (Node.JS server)
https://socket.io
MIT License
60.6k stars 10.09k forks source link

Socket.io doesn't work with connect 2.0.x #785

Closed xcoderzach closed 9 years ago

xcoderzach commented 12 years ago

Here is the issue on connect https://github.com/senchalabs/connect/issues/500#issuecomment-4336487

I'm not sure if the issue is with socket.io or connect.

snodgrass23 commented 12 years ago

any idea when this is going to be updated to work with connect 2 /express 3?

edit: after some digging, it seems like maybe the server events for connection, request, etc aren't making it out of connect.

fedot commented 12 years ago

I've managed to get socket.io working with express 3.x app by using next code:

var app = express();
var server = app.listen(4000);
var io = require('socket.io').listen(server);
525c1e21-bd67-4735-ac99-b4b0e5262290 commented 12 years ago

Thanks @fedot. This fixes dnode with express@3.0.0alpha1 too :)

randallb commented 12 years ago

@fedot THANK YOU SO MUCH.

fedot commented 12 years ago

Any reasons to keep this issue "open"? There is a solution and corresponding bug senchalabs/connect#500 is closed for a long time...

Charuru commented 12 years ago

Maybe close when this is added to the readme / docs.

meaku commented 12 years ago

Would be really great if this would be part of the socket.io readme.