{"issue":{"created_at":"2011-08-07T15:36:17Z","state":"open","updated_at":"2011-12-02T02:12:34Z","comments":3,"user":{"gravatar_id":"a03d14e553f1496405386bb77a9958cb","id":270447,"url":"https://api.github.com/users/syndr0m","avatar_url":"https://secure.gravatar.com/avatar/a03d14e553f1496405386bb77a9958cb?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"syndr0m"},"body":"Using express.vhost on a socket.io app leads to errors : hang up, falling back to xhr-polling, disconnections,  ...\r\n\r\n```\r\nvar express = require('express')\r\n  , app = express.createServer()\r\n  , server = express.createServer()\r\napp.get('/', function (req, res) {\r\n\tres.send('\\\r\n<html>\\\r\n<body>\\\r\n\t<script src=\"/socket.io/socket.io.js\"></script>\\\r\n\t<script>io.connect(\"http://localhost\")</script>\\\r\n</body>\\\r\n</html>')\r\n})\r\nio = require('socket.io').listen(app)\r\nserver.use(express.vhost('localhost', app));\r\nserver.listen(80)\r\n```\r\n\r\nnode v0.4.10, express 2.4.4, socket.io 0.7.7","assignee":null,"id":1360945,"labels":[],"number":797,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"title":"express.vhost() + socket.io","closed_at":null,"html_url":"https://github.com/visionmedia/express/issues/797","url":"https://api.github.com/repos/visionmedia/express/issues/797","milestone":null},"action":"created","comment":{"created_at":"2011-12-02T02:12:34Z","updated_at":"2011-12-02T02:12:34Z","user":{"gravatar_id":"81fd77e9430cb29127a36f9287f69a0f","id":666455,"url":"https://api.github.com/users/jamescharlesworth","avatar_url":"https://secure.gravatar.com/avatar/81fd77e9430cb29127a36f9287f69a0f?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"jamescharlesworth"},"body":"I've had similar issues. Also takes about 5 seconds to connect using vhosts and falls back to xhr polling. \r\nsocket.io 0.8.7, express 2.5.1, node 0.6.2","id":2985314,"url":"https://api.github.com/repos/visionmedia/express/issues/comments/2985314"}}