Don't make server/WebServer a singleton
Instead just pass the webserver as parameter for the emailcontroller websocket action.