title: send command via tcp ip through javascript
body: <p>I want to achieve following functionality and need the help for the same:</p>
  
  <ol>
  <li><p>I have one server on which there is device connected that prints some bar codes based on pre-formatted command given to it.</p></li>
  <li><p>Currently there is one desktop application which generates the command and does the job.</p></li>
  <li><p>Now I want to do this via web, meaning there will be one webpage (say .aspx) and I want to achieve this by javascript.</p></li>
  </ol>
  
  <p>I am able to generate the pre-formatted command required for printing but I don't know how to send the command to server, whether socket tcp ip or something else.</p>
  
  <p>I have tried using node.js, socket.io, json-socket etc. but nothing is working,</p>