There's an example on the API docs page: http://nodejs.org/api/net.html#net_net_createserver_options_connectionlistener
On Tue, Apr 15, 2014 at 2:13 PM, Reza Razavipour <[email protected]>wrote: > so my server provide a UNIX domain socket and accepts my connection, from > node.js client. > > My code is:var client = net.createConnection("/tmp/SocketServer"); I see > that the server accepted my connection looking at the logs. > > next step is for me to write to this socket, or the client variable. > > In the debugger, client variable is of type Socket. > > I only see EventEmitters for the client. How do I write to it? > > > -- > -- > 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/d/optout. > -- -- 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/d/optout.
