dist/client/lance-gg.js
/**
       * Produces an ack callback to emit with an event.
       *
       * @private
       */
Produces an ack callback to emit with an event.
@private
Produces an ack callback to emit with an event . @private
ack(id) {
          const self = this;
          let sent = false;
          return function (...args) {
              if (sent)
                  return;
              sent = true;
              debug("sending ack %j", args);
              self.packet({
                  type: dist.PacketType.ACK,
                  id: id,
                  data: args,
              });
          };
      }
ack ( id ) { const self = this ; let sent = false ; return function ( ... args ) { if ( sent ) return ; sent = true ; debug ( "sending ack %j" , args ) ; self . packet ( { type : dist . PacketType . ACK , id : id , data : args , } ) ; } ; }
Produces an ack callback to emit with an event.
Produces an ack callback to emit with an event .
// prevent double callbacks