Emit message event.