client sends data, on successful connection it send the date