title: How to connect meteor server to another tcp server via tcp socket
body: <p>I want to create a meteor application that connect meteor server to another tcp server,
  that is meteor server is client side and another tcp server is server side.</p>
  
  <p>1.It like WebSocket of browser ,but I want use it on meteor server ,not on meteor client .
  WebSocket using like :</p>
  
  <pre><code>  var tcpServer = "ws://some.tcpServer.org/";
    socket = new WebSocket(tcpServer,options); 
    socket.onopen = function(evt) { onOpen(evt) };
    socket.onclose = function(evt) { onClose(evt) }; 
    socket.onmessage = function(evt) { onMessage(evt) };
    socket.onerror = function(evt) { onError(evt) };
  </code></pre>
  
  <p>2.Maybe as follow :</p>
  
  <pre><code>  if (Meteor.isServer) {  
      Meteor.startup(function () {
        var tcpServer = "ws://some.tcpServer.org/";
        socket = new socketClient(tcpServer,options); 
        socket.onopen = function(evt) { onOpen(evt) };
        socket.onclose = function(evt) { onClose(evt) }; 
        socket.onmessage = function(evt) { onMessage(evt) };
        socket.onerror = function(evt) { onError(evt) };
      })
    }
  </code></pre>
  
  <p>3.Or ...</p>
  
  <pre><code>  var net = Npm.require('net');
    net.createServer(function(socket){...} is for server side , not fit for my idea.
    Maybe like net.createClient(function(tcpServer, options ){...} , but no this method.
  </code></pre>
  
  <p>I had been looking around but i do not see a method for Meteor. Can anyone give any pointers for me to start? </p>
  
  <p>Thank a lot !</p>