Fixed the way socket.io server is instanciated, cf socket.io docs.