client/src/index.js
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')
  }
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')
  }
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' ) }
Sends a horizon protocol request to the server, and pulls the data portion of the response out.
Sends a horizon protocol request to the server and pulls the data portion of the response out .