added passthrough of options to socket creation, added isConnected to client