title: How to control or manipulate a server using javascript?
body: <p>I would like to manipulate my own custom http server using javascript.</p>
  
  <p>For example I would like the server to send an email based on ajax data received from a javascript page hosted from the server.</p>
  
  <p>Another use would be to open a connection at an arbitrary port to an arbitrary web address and receive data from the connection.</p>
  
  <p>Is there a protocol or framework to do this ?</p>