using a construction class
adding it to ws client to construct a socket implementation
new version for socket implementation