Node.js is an event-based, asynchronous I/O framework that uses Google's V8 JavaScript engine. Node.js is commonly used for heavy client-server JavaScript applications.

learn more… | top users | synonyms (1)

5
votes
0answers
180 views

socket.io - disconnect event doesn't fire in xhr-polling

In socket.io the disconnect event doesn't fire when the transport xhr-polling is active. If I switch the transport to websockets it works fine, but in xhr-polling its doesn't work. /* Basics */ var ...
5
votes
0answers
247 views

Grunt a TypeScript to JavaScript with uglify

I have 4 TypeScript files under the ts directory. I can compile them all into one file (main.js) with a source map (main.js.map) using the typescript:base task. However, trying to uglify those files ...
5
votes
0answers
545 views

How to add “Remember Me” to my app with passport

I need a "Remember Me" checkbox when logging in like this . And I add a middleware before using passport app.use(function (req, res, next) { if (req.method == 'POST' && req.url == '/login') { ...
4
votes
0answers
736 views

Node.js theory - Node.js, Express.js, Passport.js

I'm struggling with some of the theory and conventions behind some Node.js frameworks. I'm new to Node.js. I'm trying to set up a scenario where I have an MVC framework where I define a set of ...
4
votes
0answers
815 views

Nodejs + phantomjs vs. pure phantomjs - page load time

I was poking around recenlty exploring nodejs and phantomjs and wrote a small code to measure the page load time. I have found that page load times differ between the phantomjs code wrapped in nodejs ...
4
votes
0answers
2k views

Multiple issues running grunt.cmd on windows

I had to modify grunt.cmd because the path for my system was very wrong: Originally: %~dp0\Application Data\npm\node_modules\grunt Which would print: \\dacwnas\Profiles\<user>\Application ...
4
votes
0answers
385 views

socket.io-client can't get authorization fail reason

[email protected] [email protected] [email protected] server code: //run with node-dev server.js var remoteServer = io.of('/remote'); remoteServer.authorization(function(handshakeData, ...
3
votes
0answers
22 views

Error starting foreman (Dotenv::FormatError)

I'm trying to get a node.js app to start using foreman. I run the forman start command in the projects root directory and I keep getting the following error: ...
3
votes
0answers
450 views

heroku facebook app run locally throws blocked frame error on fb login

I've followed the steps in the Heroku tutorial for node.js as well as ruby and run into the same issue. Am able setup the basic applicatin and run it locally using 127.0.0.01:5000 However, when the ...
3
votes
0answers
132 views

How to deal with block length in Node.js crypto streams

I want to crypt an input stream and send it to another server via TCP. So far so good. Everything runs smoothly, until the connection is closed. In almost any case the needed block size of 192 bits is ...
3
votes
0answers
171 views

node.js crashes when serving video file

I'm serving static video files (.ogv and .mov) with node.js and video.js plugin. However, node.js keeps crashing with below error message: node: ../deps/uv/src/unix/stream.c:1319: uv_read_stop: ...
3
votes
0answers
139 views

Communicate with node.js from VB.NET

I have a node.js-app running on the same machine on port 8080 with different channels. The communication between my jQuery-site and my .NET endpoint works perfectly. My Site: <!doctype html> ...
3
votes
0answers
154 views

QUnit and PhantomJS testing of AJAX requests only works through proxy

I'm attempting to use grunt-contrib-qunit to run a pre-existing suite of qunit tests (testing parsing of ajax request results) in headless mode with Phantom on Windows 8. The tests complete fine in ...
3
votes
0answers
176 views

Using CompoundJs with Passport

I'm trying to use Passport with Compound Js. I've configured the passport in an initialization file. as below var passport = require('passport') , LocalStrategy = require('passport-local').Strategy; ...
3
votes
0answers
94 views

NodeJS errno 37 on socket.connect

I'm trying to connect to multiple hosts in succession, this is the code to resolve the ip address and socket.connect() to each domain name (line[1]). This works on it's own but returns an errno 37 ...

1 2 3 4 5 401
15 30 50 per page