All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.directwebremoting.dwr-bayeux.js Maven / Gradle / Ivy


dwr.bayeux = { _origSendData: dwr.engine.transport.send };

dojo.require("dojox.cometd");

dwr.engine.transport.send = function(batch) {
  batch.map.batchId = dwr.engine._nextBatchId;
  dwr.engine._nextBatchId++;
  dwr.engine._batches[batch.map.batchId] = batch;
  dwr.engine._batchesLength++;
  batch.completed = false;

  for (var i = 0; i < batch.preHooks.length; i++) {
    batch.preHooks[i]();
  }
  batch.preHooks = null;
  
  // convert integers to strings
  var count=batch.map['callCount'];
  batch.map['callCount']=''+count;
  batch.map['batchId']=''+batch.map['batchId'];
  for (var i=0; i




© 2015 - 2024 Weber Informatics LLC | Privacy Policy