Use 'send' and 'recv' events instead 'onResource*'