LearnBoost/socket.io — Issue #727: client-side: unable to reconnect after disconnect
Author: bohnman
Created: 2012-01-22 19:40:09+00:00
State: open

I have two buttons, one called connect and another called disconnect. The first connect/disconnect works. Subsequent connects do not work.

For more details:

When you click on connect, it executes:

```javascript
var socket = io.connect('/');
```

When you click on disconnect, it executes:

```javascript
socket.disconnect();
```

I also have listeners:

``` javascript
socket.on('connect', function() { console.log('CONNECT') });
socket.on('disconnect', function() { console.log('DISCONNECT') });
```

Not only do I not see a connect message in the console, there is no connection logged on the server side nor is there any network traffic to indicate a connection.

On the client side, I'm running on Chrome 16.0.912.75 on Mac OSX Lion
On the server side, I'm running socket.io 0.8.7 with express 2.5.2 and node.js 0.6.6