Working sockets on client