connect({ host, port }) {
    this._wrapSocket(new Socket());
    this._socket.connect({ host, port });
    return this;
  }
/**
    Connect to a JsonSocket server.
    @param {object} param
    @param {string} [param.host] the host to connect to. Default is localhost
    @param {number} param.port the port to connect to. Required.
    @return {JsonSocket}
   */
Connect to a JsonSocket server.
Connect to a JsonSocket server .
connect({ host, port }) {
    this._wrapSocket(new Socket());
    this._socket.connect({ host, port });
    return this;
  }
connect ( { host , port } ) { this . _wrapSocket ( new Socket ( ) ) ; this . _socket . connect ( { host , port } ) ; return this ; }
Connect to a JsonSocket server.
Connect to a JsonSocket server .