adding sockets support to client