New connect breaks nowjs URL?

27 views
Skip to first unread message

Brendan

unread,
Mar 4, 2012, 9:20:10 PM3/4/12
to nowjs
I just did an 'npm update' and apparently got the latest version of
connect. Now, nowjs isn't successfully setting up its own .js file to
be returned when requested (as myserver.com/nowjs/now.js). Anybody
else seen this happen?

I'm doing a trivial setup like this:


var showPage = function(req, res, next)
{
res.end(html);
}

var server = connect()
.use(connect.favicon(__dirname+'/favicon.ico'))
.use(showPage);

var everyone = nowjs.initialize(server, {socketio: {"log level": 2}});

Brendan

unread,
Mar 4, 2012, 11:43:51 PM3/4/12
to nowjs
Guessing it's related to the release of connect 2.0:
http://tjholowaychuk.com/post/18418627138/connect-2-0
Reply all
Reply to author
Forward
0 new messages