Sockets client mostly done