title: How to serve several Web Socket
body: <p>I have 30 smart-sensors distributed in several private networks with Internet access (all of them). I have to establish a persistent connection (socket) between those sensors and a server which has a public IP. </p>
  
  <p>A user can access each sensor through a website (Django) and send or get data.</p>
  
  <p>From your point of view, how can I ensure several persistent and private connections? I found <a href="https://github.com/gregmuellegger/django-websocket" rel="nofollow">https://github.com/gregmuellegger/django-websocket</a>, but I think is not suitable for my application because I cannot recover an existent socket connection from other Django views.</p>
  
  <h2>Any suggestions are very well received.</h2>
  
  <p>I found a good approach using Twisted Perspective Broker with JSON-RPC in the server providing methods to support each smart sensor, and for the other side each sensor will use a JSON library to authenticate (basic) and send data.</p>
  
  <p>What do you think? Is this a good solution? I will post results as soon as I test it.</p>