Added the on property, which enables events from http-proxy