Skip to content
Browse files

writing in connect handler crashes mdm

  • Loading branch information...
1 parent fd38bd0 commit b35c5a1d7eb201d65d0d4da029f80e020b13dd5f @Raynos committed Aug 6, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 examples/boot/client.js
View
4 examples/boot/client.js
@@ -4,6 +4,10 @@ var boot = require('boot')
var room1 = mdm.createStream("/channel/room1")
, room2 = mdm.createStream("/channel/room2")
+mdm.on("connect", function () {
+ room1.write("die!")
+})
+
room1.on("data", console.log.bind(console, "room1"))
room2.on("data", console.log.bind(console, "room2"))

0 comments on commit b35c5a1

Please sign in to comment.
Something went wrong with that request. Please try again.