The function activates the event handlers for server events. When not activating server event handling, server events are not passed to the application.