The Node API is not available in the browser environment, so client.js won't work from the browser. Because of security concerns, files system and network access is very restricted from browsers. The closest you can get to what you want to achieve is to use socket.io - http://socket.io/.
I am the author of that tutorial, btw. Feel free to ask anything. On Thu, Jun 13, 2013 at 7:25 PM, <[email protected]> wrote: > Hi All, > > I have successfully installed node.js on my Windows system > > We are trying to implement raw socket TCP/IP connection with server. > > After continuous search and development , i came across net module > required by node.js which ultimately fulfill my requirement. > > Will net module also helps in getting the asynchronous data from server > and allow it to display it in the Client browser ? > > As explained in the tutorial ( > http://www.hacksparrow.com/tcp-socket-programming-in-node-js.html ), the > client.js is executed at the command prompt of Node and the result is > displayed respectively. Since "require" is the keyword for node , so > how'll execute the client TCP socket connection in the browser? > > Sorry if anything is getting misunderstood. > > Can you please guide us with the requirements using node.js . > > Thanks in advance, > > > > -- > -- > Job Board: http://jobs.nodejs.org/ > Posting guidelines: > https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines > You received this message because you are subscribed to the Google > Groups "nodejs" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/nodejs?hl=en?hl=en > > --- > You received this message because you are subscribed to the Google Groups > "nodejs" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
