cacert-testmgr/external/ZendFramework-1.9.5/externals/dojo/dojox/cometd/timestamp.js

9 lines
245 B
JavaScript
Raw Normal View History

dojo.provide("dojox.cometd.timestamp");
dojo.require("dojox.cometd._base");
// A cometd extension that adds a timestamp to every message
dojox.cometd._extendOutList.push(function(msg){
msg.timestamp = new Date().toUTCString();
return msg
});