I think server should notify all the clients about the change in states 
whenever a client has changed shared states. I guess in your solution, 
client is asking server weather there is some change in the shared states 
or not, which is not a correct approach.

On Sunday, August 24, 2014 2:54:22 PM UTC+1, Rituparna Matkar wrote:
>
> Hi
>
> I am trying to finish a phonegap app with django as a backend. I want to 
> implement web sockets in this app. To give a use case, there are an array 
> of buttons that all the users can see, if one user makes any changes to the 
> button (enable/disables) the change should be visible to other users as 
> well. The way I am coin it right now is after every 3 seconds I am sending 
> a call to the server weather the status of the button has changed and if 
> yes I refresh the page. I believe there could be a better solution to this. 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/7e0f582b-e3e4-4568-ab33-1801e65639d4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to