Look at the following code :
var server = net.createServer(function(socket) {
//Code block A
socket.on('connect', function() {
//Code block B
})
socket.on('data' , function (data){
//Code C
});
});
Is there a chance code block A will be executed and code block B won't and vice versa? And if so, in what cases?
For counter example : Once code A has been executed Code C can run multiply time, without Code A ever running again.