title: tcp client with socket.io (nodejs)
body: <p>I need a nodejs server connected to a C# application, i don't like using third-party libraries, so I've been trying using a <code>TcpClient</code>, the server is something like this:</p>
  
  <pre><code>var io = require('socket.io').listen(8000);
  io.socket.on('connection',function(socket)
  {
   console.log("connected");
  }
  </code></pre>
  
  <p>and on the C# project:</p>
  
  <pre><code>var client = new TcpClient(Server,8000);
  Socket s = client.Client;
  if (!s.Connected)
  {
     s.SetSocketOption(SocketOptionLevel.Socket,
     SocketOptionName.ReceiveBuffer, 16384);
     MessageBox.Show("disconnected");
  }
  else
  {
     MessageBox.Show("connected");
     s.Send(Encoding.UTF8.GetBytes("something"));
  }
  </code></pre>
  
  <p>for what i understood on the <code>"something"</code> i should write something that would trigger the "on('connection')" on the nodejs side, am i missing something?</p>
  
  <p>PS: if you know a good third-party library for what i need you could mention it</p>