title: HTTP\WebSocket server under Cordova application
body: <p>I've faced an issue with creating any kind of servers under Cordova application. Wondering if it possible at all.</p>
  
  <p><strong>Scenario</strong></p>
  
  <p>Let's imagine that we have a decentralized network of devices (tablets, phones) from one tablet to a huge network of 20+ devices and can be more. These devices must handle synchronization between each other and it can be implemented as HTTP server or WebSocket server, etc...</p>
  
  <p>Each device have installed Cordova application and our goal is to make these devices discoverable in a network (<em>I was thinking about UDP datagrams for discovery</em>) and these devices must synchronize data between them (<em>simple TCP connections and JSON objects</em>).</p>
  
  <p><strong>Question</strong></p>
  
  <p>For this scenario we need to have an access to a network layer in Cordova application. So, our Cordova application when running onto device can be as server and as client as well. The question here is <strong>how to implement UDP\TCP server in Cordova application, since we have only client implementations?</strong></p>
  
  <hr>
  
  <p>P.S. I was trying plugins like <em>cordova-plugin-chrome-apps-udp</em>, <em>cordova-plugin-websocket</em> and <em>cordova-plugin-websocket-server</em> but it still doesn't work properly (<em>I'd like to say it's not working at all</em>)</p>