Permalink
Browse files

fixed extraneous code in helloworld example

  • Loading branch information...
1 parent 6f3e3ce commit e377bb36214742a76e57fa2921b2f79f7847da66 @ericz ericz committed Sep 6, 2011
Showing with 0 additions and 29 deletions.
  1. +0 −29 examples/helloworld_example/helloworld_server.js
@@ -13,42 +13,13 @@ var everyone = nowjs.initialize(server);
nowjs.on("connect", function(){
- group.addUser(this.user.clientId);
console.log("Joined: " + this.now.name);
});
nowjs.on("disconnect", function(){
console.log("Left: " + this.now.name);
});
-everyone.on('join', function(){
- console.log("joined " + this.now.name);
-});
-
-
-everyone.on('leave', function(){
- console.log("left " + this.now.name);
-});
-
-
-
-
-var group = nowjs.getGroup('x');
-
-
-everyone.now.add = function(){
-
- group.now.x = {};
- group.now.x.a = 1;
- group.now.x.b = function(){console.log('hello'); everyone.now.receiveMessage('hi', 'hi')}
-}
-
-everyone.now.test = function(){group.now.x.b();};
-
-everyone.now.exclude = function(){
- group = group.exclude(this.user.clientId);
-}
-
everyone.now.distributeMessage = function(message){
everyone.now.receiveMessage(this.now.name, message);

0 comments on commit e377bb3

Please sign in to comment.