Closed eirikb closed 13 years ago
Isn't there already a this.user object within the scope of the called function?
Yes, but it is sent in every time, so it is not persistent on the server side. As in my example would not work since test would no longer exists in the world-function.
This is a good idea, eirikb . There are several other places where we create a one-time user object. I'll change those other places to use a persistent user object and then merge your pull request.
Awesome
Implemented in github master. npm soon.
Hello.
This is a simple example of how this.user can become a persistent server-side object. Example of usage: index.html:
server.js: