[minor] Expose the client library through a `Socket` constructor.