Created
April 15, 2012 11:22
-
-
Save Raynos/2391988 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var dnode = require("dnode") | |
var dnode1 = dnode({ ... }).listen(server, { | |
io: ??? | |
}) | |
dnode2 = dnode({ ... }).listen(server, { | |
io: ??? | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@SubStack what should be in
???
Alternatively, how do I have multiple dnode instances served over the same
HTTPServer
(with browser / socket.io support)