tcp client with socket.io (nodejs)

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 TcpClient, the server is something like this:

var io = require('socket.io').listen(8000);
io.socket.on('connection',function(socket)
{
 console.log("connected");
}

and on the C# project:

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"));
}

for what i understood on the "something" i should write something that would trigger the "on('connection')" on the nodejs side, am i missing something?

PS: if you know a good third-party library for what i need you could mention it

Actually, the server on('connection') should fire at the time you construct your TcpClient object because that's when the connection occurs, rather than at the point where you attempt to send some data.