dispatch(action, payload, fn) {
    if (typeof fn !== 'function') {
      return this[client].dispatch(action, payload).catch((e) => {
        e.ns = 'UNLOQ';
        throw e;
      });
    }
    this[client].dispatch(action, payload).then((res) => {
      fn(null, res);
    }).catch((e) => {
      e.ns = 'UNLOQ';
      fn(e, null);
    });
  }
/*
   * Performs an action dispatch to the UNLOQ API
   * */
Performs an action dispatch to the UNLOQ API
Performs an action dispatch to the UNLOQ API
dispatch(action, payload, fn) {
    if (typeof fn !== 'function') {
      return this[client].dispatch(action, payload).catch((e) => {
        e.ns = 'UNLOQ';
        throw e;
      });
    }
    this[client].dispatch(action, payload).then((res) => {
      fn(null, res);
    }).catch((e) => {
      e.ns = 'UNLOQ';
      fn(e, null);
    });
  }
dispatch ( action , payload , fn ) { if ( typeof fn !== 'function' ) { return this [ client ] . dispatch ( action , payload ) . catch ( ( e ) => { e . ns = 'UNLOQ' ; throw e ; } ) ; } this [ client ] . dispatch ( action , payload ) . then ( ( res ) => { fn ( null , res ) ; } ) . catch ( ( e ) => { e . ns = 'UNLOQ' ; fn ( e , null ) ; } ) ; }
Performs an action dispatch to the UNLOQ API
Performs an action dispatch to the UNLOQ API