Skip to content

Instantly share code, notes, and snippets.

factory('cometd', function($rootScope) {
var cometd = $.cometd;
// Configure cometd
cometd.configure({
url: location.protocol + '//' + location.host + config.contextPath + '/cometd',
logLevel: 'info'
});
// Add a listener for the handshake *TODO* what should be done if message fails ?
@Landish
Landish / code-1.js
Last active August 29, 2015 14:07 — forked from bennadel/code-1.js
window.navigator.standalone