LearnBoost/socket.io — Issue #579: Socket.IO websocket transport doesn't work with 0.5.x
Author: OneOfOne
Created: 2011-10-14 01:32:35+00:00
State: open

There aren't any errors, it just times out.
the only relevant debug messages:

```
debug - client authorized
info - handshake authorized 553529438270847218
debug - setting request GET /socket.io/1/websocket/553529438270847218
debug - set heartbeat interval for client 553529438270847218
warn - websocket connection invalid
info - transport end
```
**Client**:

```

```

**Server** :

```
var app = require('http').createServer(handler)
, io = require('socket.io').listen(app, {transports:['websocket']})
, fs = require('fs')

app.listen(8080);

function handler (req, res) {
fs.readFile(__dirname + '/index.html',
function (err, data) {
if (err) {
res.writeHead(500);
return res.end('Error loading index.html');
}

res.writeHead(200);
res.end(data);
});
}

io.sockets.on('connection', function (socket) {
socket.emit('news', { hello: 'world' });
socket.on('my other event', function (data) {
console.log(data);
});
});
```

Node version : `v0.5.10-pre` (also applies to `v0.5.7-9`)