code: function sendRequest(type, options) {
      // Both remove and removeAll use the type 'remove' in the protocol
      const normalizedType = type === 'removeAll' ? 'remove' : type
      return socket
        .hzRequest({ type: normalizedType, options }) // send the raw request
        .takeWhile(resp => resp.state !== 'complete')
    }
docs: Sends a horizon protocol request to the server, and pulls the data portion of the response out.