Add socket.io configuration.