method for socket reading, thread waiting for snapshots