timeout, callback & drop management - jshint compliant Part1
change onMessage signature & update samples - fix some issues
jshint compliant P2