lib/infinispan.js
function(listenerId) {
        var ctx = u.context(SMALL);
        logger.debugf('Invoke removeListener(msgId=%d,listenerId=%s) remotely', ctx.id, listenerId);
        var conn = p.findConnectionListener(listenerId);
        if (!f.existy(conn))
          return Promise.reject(
            new Error('No server connection for listener (listenerId=' + listenerId + ')'));

        var remote = futurePinned(ctx, 0x27, p.encodeListenerId(listenerId), p.complete(p.hasSuccess), conn);
        return remote.then(function (success) {
          if (success) {
            p.removeListeners(listenerId);
            return true;
          }
          return false;
        })
      }
function(listenerId) {
        var ctx = u.context(SMALL);
        logger.debugf('Invoke removeListener(msgId=%d,listenerId=%s) remotely', ctx.id, listenerId);
        var conn = p.findConnectionListener(listenerId);
        if (!f.existy(conn))
          return Promise.reject(
            new Error('No server connection for listener (listenerId=' + listenerId + ')'));

        var remote = futurePinned(ctx, 0x27, p.encodeListenerId(listenerId), p.complete(p.hasSuccess), conn);
        return remote.then(function (success) {
          if (success) {
            p.removeListeners(listenerId);
            return true;
          }
          return false;
        })
      }
function ( listenerId ) { var ctx = u . context ( SMALL ) ; logger . debugf ( 'Invoke removeListener(msgId=%d,listenerId=%s) remotely' , ctx . id , listenerId ) ; var conn = p . findConnectionListener ( listenerId ) ; if ( ! f . existy ( conn ) ) return Promise . reject ( new Error ( 'No server connection for listener (listenerId=' + listenerId + ')' ) ) ; var remote = futurePinned ( ctx , 0x27 , p . encodeListenerId ( listenerId ) , p . complete ( p . hasSuccess ) , conn ) ; return remote . then ( function ( success ) { if ( success ) { p . removeListeners ( listenerId ) ; return true ; } return false ; } ) }
Remove an event listener.

@param {String} listenerId
Listener identifier to identify listener to remove.
@return {module:promise.Promise}
A promise that will be completed when the listener has been removed.
@memberof Client#
@since 0.3
Remove an event listener .