> > as an example of what i have: > >> >> var socket = new SocketSync(); >> socket.open('localhost', 8856); >> socket.write('my request'); >> var mydata= socket.read(); >> socket.end(); > > Check out the "socket" module in Common Node: https://github.com/olegp/common-node
Here's the canonical chat example written using the lib: https://github.com/olegp/common-node/blob/master/examples/chat.js In your code above, "SocketSync" becomes "Socket" and "open" becomes "connect". Everything else should work as is. Oleg -- 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 nodejs@googlegroups.com To unsubscribe from this group, send email to nodejs+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en