updating socket to main and adding array to dataService