Updated server sockets to handle data