Flotype / now

NowJS makes it easy to build real-time web apps using JavaScript
http://www.nowjs.com
MIT License
1.91k stars 175 forks source link

Variable syncing not working? #131

Closed JeromeParadis closed 13 years ago

JeromeParadis commented 13 years ago

Hello,

trying out the multiroom chat server example. Using nowjs installed from npm yesterday. In the example, the changeRoom server function sets this.now.room to the new room name. Shouldn't the now.room variable in the client be updated with the new room name? Using Firefox and Firebug on Mac, I can see the now.room variable always stay to room1. From what I understand from the variable syncing documentation, shouldn't be now.room on the client who initiated the room change be equal to "room2" when changing to room2?

Maybe I don't understand how syncing should work?

steveWang commented 13 years ago

Hi, looks like this bug was introduced when we attempted to fix a mostly unrelated issue with the client echoing back all scope synchronizations to the server. Thanks for the bug report! (fixed in commit be675edea9d968c2cc6a.)