Permalink
Browse files

Hacking branch of running the CometD JS client against the Node serve…

…r, with WebSocket support broken.
  • Loading branch information...
1 parent dd3a1b6 commit 3b5bec453545d1f3efb11ba79c0038a5e20ef6e5 @jcoglan jcoglan committed Aug 17, 2012
View
@@ -4,7 +4,7 @@ var fs = require('fs'),
https = require('https'),
faye = require('../../build/node/faye-node');
-// faye.Logging.logLevel = 'debug';
+faye.Logging.logLevel = 'debug';
var SHARED_DIR = path.dirname(__filename) + '/../shared',
PUBLIC_DIR = SHARED_DIR + '/public',
@@ -36,9 +36,11 @@ var server = secure
bayeux.attach(server);
server.listen(Number(port));
+/*
bayeux.getClient().subscribe('/chat/*', function(message) {
console.log('[' + message.user + ']: ' + message.message);
});
+*/
bayeux.bind('subscribe', function(clientId, channel) {
console.log('[ SUBSCRIBE] ' + clientId + ' -> ' + channel);
Oops, something went wrong.

0 comments on commit 3b5bec4

Please sign in to comment.