django - How to serve several Web Socket -


i have 30 smart-sensors distributed in several private networks internet access (all of them). have establish persistent connection (socket) between sensors , server has public ip.

a user can access each sensor through website (django) , send or data.

from point of view, how can ensure several persistent , private connections? found https://github.com/gregmuellegger/django-websocket, think not suitable application because cannot recover existent socket connection other django views.

any suggestions received.

i found approach using twisted perspective broker json-rpc in server providing methods support each smart sensor, , other side each sensor use json library authenticate (basic) , send data.

what think? solution? post results test it.

set seperate server keeps persistent connections, , allow django application query it. twisted can provide great framework writing simple, single purpouse servers, , there tutorial on how write xml-rpc server here. python has excellent support xml-rpc, , should easy enough , running.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -