django and websockets in phonegap app

26 views
Skip to first unread message

Rituparna Matkar

unread,
Aug 24, 2014, 9:54:22 AM8/24/14
to django...@googlegroups.com
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. 

zubair alam

unread,
Aug 25, 2014, 12:35:53 PM8/25/14
to django...@googlegroups.com
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.
Reply all
Reply to author
Forward
0 new messages