I´m trying to get nowjs to work with expressjs 3.0alpha4. I´ve added the script to my view like so:
<script src="/nowjs/now.js"></script>
And have also tried:
<script src="https://localhost/nowjs/now.js"></script>
But all i get is a:
GET https://localhost/nowjs/now.js 403 (Forbidden)
Have anyone gotten this to work with expressjs 3.0.?
Even if i host the now.js file, I still get: Now is not defined
You need to pass an HTTPServer object to the now initializer. Express 3.0 doesn't reveal this object like 2.x did.
So do something like: