Before to send events to hub
For Http Events