Skip to content
Browse files

dont have ws server so using long polling for the time being

  • Loading branch information...
1 parent 6664843 commit e02230ad5f63e82a15cabe0387851e4e97b9da68 Jen Fong-Adwent committed Mar 26, 2012
Showing with 6 additions and 1 deletion.
  1. +5 −0 app.js
  2. +1 −1 lib/authenticate.js
View
5 app.js
@@ -14,6 +14,11 @@ var userList = new Array();
var io = require('socket.io').listen(app);
+io.configure(function () {
+ io.set("transports", ["xhr-polling"]);
+ io.set("polling duration", 10);
+});
+
// routes
require("./routes")(noodle, app);
require("./routes/message")(noodle, app, io, userList, recentMessages);
View
2 lib/authenticate.js
@@ -2,7 +2,7 @@
exports.verify = function(req, settings, callback) {
var authUrl = settings.options.authUrl + '/verify';
var request = require('request');
- var siteUrl = settings.options.domain + ':' + settings.options.port;
+ var siteUrl = settings.options.domain + ':' + settings.options.authPort;
if(!req.body.bid_assertion) {
return false;

0 comments on commit e02230a

Please sign in to comment.
Something went wrong with that request. Please try again.