substack/dnode — Issue #88: Two DNode.connect and one stalls
Author: albertosantini
Created: 2012-01-22 10:15:41+00:00
State: open

I modifed the simple example making two calls. The first one works nice, while the second one it seems stucked.

conn.end() doesn't help.

I am sure I have been missing something.

```

The cat says ?.
The dog says ?.

```

And the server
```
var connect = require('connect');
var dnode = require('dnode');

var server = connect.createServer();
server.use(connect.static(__dirname));

dnode(function (client) {
this.cat = function (cb) {
cb('meow ');
};
this.dog = function (cb) {
cb('bau ');
};

}).listen(server);

server.listen(6857);
console.log('http://localhost:6857/');
```