Yes, it is, it's quite easy, if your socket connection persists (or your server and client have means to reconnect if the socket is short-lived).
Example would be something like this: ``` io.on('connection', function(socket){ socket.on('message', function(msg) { }) }); ``` On Friday, September 25, 2015 at 9:16:09 PM UTC+2, Bouch Seb wrote: > > Hi, thanks for reading my newbie question. Sorry if it's already in the > forum and I didn't find it... > Is it possible to have this sequence with nodejs through socket.io: > 1. a client requests the server > 2. the server answers and runs a setTimeout function > 3. when the setTimeout elapses, the server sends another answer to the > client > Easy? > Thanks in advance for your answer. > -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: 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 unsubscribe from this group and stop receiving emails from it, send an email to nodejs+unsubscr...@googlegroups.com. To post to this group, send email to nodejs@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/977c4a4a-2eef-4c8f-99c4-6091e92ceaca%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.