Injecting server events from constructor