Permalink
Browse files

dead code

  • Loading branch information...
1 parent 74261ae commit 2c60d04b2f1c1e34ffff45c34a8aa0d863a4b3a4 @Raynos committed Aug 10, 2012
Showing with 0 additions and 61 deletions.
  1. +0 −10 example/simple/client.js
  2. +0 −20 example/upnode/client.js
  3. +0 −31 example/upnode/server.js
@@ -1,10 +0,0 @@
-var boot = require('../../browser.js')
- , mdm = boot("/boot")
-
-var one = window.one = mdm.createStream("one")
-
-one.on("data", function (data) {
- console.log("message", data)
-})
-
-one.write("hello world")
@@ -1,20 +0,0 @@
-var boot = require('../../browser.js')
- , mdm = boot("/boot")
- , upnode = require("upnode")
- , uuid = require("node-uuid")
-
-var up = upnode.connect({
- createStream: createStream
-})
-
-setInterval(function () {
- up(function (remote) {
- remote.time(function (t) {
- console.log('time = ' + t)
- })
- })
-}, 1000)
-
-function createStream() {
- return mdm.createStream("upnode-" + uuid())
-}
@@ -1,31 +0,0 @@
-var http = require('http')
- , path = require("path")
- , through = require("through")
- , browserify = require("browserify")
- , upnode = require("upnode")
-
-var server = http.createServer(function (req, res) {
- if (req.url === "/bundle.js") {
- var b = browserify()
- b.addEntry(path.join(__dirname, "./client.js"))
- res.end(b.bundle())
- } else {
- res.end("<script src='bundle.js'></script>")
- }
-})
-server.listen(8081)
-
-var boot = require("../..")
-
-var sock = boot(function (stream) {
- if (stream.meta.match(/upnode-/)) {
- var up = upnode(function (client, conn) {
- this.time = function (cb) {
- cb(new Date().toString())
- }
- })
- up.pipe(stream).pipe(up)
- }
-})
-
-sock.install(server, "/boot")

0 comments on commit 2c60d04

Please sign in to comment.