|
Jetty example source code file (timestamp.js)
The Jetty timestamp.js source codeif(!dojo._hasResource["dojox.cometd.timestamp"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code. dojo._hasResource["dojox.cometd.timestamp"] = true; dojo.provide("dojox.cometd.timestamp"); dojo.require("dojox.cometd"); // A cometd extension that adds a timestamp to every message dojox.cometd._extendOutList.push(function(msg){msg.timestamp=new Date().toUTCString();return msg}); } Other Jetty examples (source code examples)Here is a short list of links related to this Jetty timestamp.js source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.