setTimeout(function () { console.log(" world"); }, 2000); console.log("Hello");
setInterval(function () { console.log(" world"); }, 2000); console.log("Hello");
static void Main(string[] args) { TcpClient tcpClient = new TcpClient(); tcpClient.Connect("127.0.0.1", 8000); NetworkStream clientStream = tcpClient.GetStream(); byte[] message = new byte[4096]; int bytesRead; bytesRead = 0; try { // Read up to 4096 bytes bytesRead = clientStream.Read(message, 0, 4096); } catch { /*a socket error has occured*/ } //We have read the message. ASCIIEncoding encoder = new ASCIIEncoding(); Console.WriteLine(encoder.GetString(message, 0, bytesRead)); tcpClient.Close(); }
Nice article.
My team currently port recent .NET(Service/WCF Restful) apps to node.js which is boost significant performance compared with previous service wrote on C# but client side still asp.net mvc v3.
Node.js Rock !!
really nice, could you post about c# sending to nodejs code please
Could you also explain sending messages, via C#, to nodejs? Thanks!