title: Communication with javascript and localhost
body: <p>I have a JavaScript code running on internet browser and in the same machine in local host is running a python code.</p>
  
  <p>I need to find a way to communicate between them.</p>
  
  <p>Socket client-server is not possible because JavaScript don´t support sockets.</p>
  
  <p><a href="https://stackoverflow.com/questions/1736382/how-to-use-sockets-in-javascript-html">How to Use Sockets in JavaScript\HTML?</a>: "There is no facility to use general-purpose sockets in JS or HTML. It would be a security disaster, for one."</p>
  
  <p>And communication through server not interest me. I need a direct communication on localhost.</p>
  
  <p>Is there any way to communicate with JavaScript and localhost without sockets? </p>