Adds socket.
Now uses redis to load data instead of loading the whole data