I'm trying to make a server based on the net module. what I don't understand is on which event I'm supposed to put the response code: on(data,function()) could still be in the middle of receiving more data from the stream (so it might be to early to reply) and on(end,function()) is after the connection is closed .
thank you for your help
dataand detect your own message format in the stream.