Skip to content

Instantly share code, notes, and snippets.

@Raynos
Created April 15, 2012 11:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Raynos/2391988 to your computer and use it in GitHub Desktop.
Save Raynos/2391988 to your computer and use it in GitHub Desktop.
var dnode = require("dnode")
var dnode1 = dnode.connect("dnode1." + window.location.host, function (remote) {
// conn1
})
var dnode2 = dnode.connect("dnode2." + window.location.host, function (remote) {
// conn2
})
var dnode = require("dnode")
var dnode1 = dnode({ ... }).listen(server, {
io: ???
})
dnode2 = dnode({ ... }).listen(server, {
io: ???
})
@Raynos
Copy link
Author

Raynos commented Apr 15, 2012

@SubStack what should be in ???

Alternatively, how do I have multiple dnode instances served over the same HTTPServer (with browser / socket.io support)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment