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 (2)

0
votes
0answers
2 views

MQTT Client for node.js TypeError

I try to understand and implement the MQTT-Client for node.js, which can be found at: http://jahbromo.blogspot.de/2011/12/client-mqttt-javascript.html I keep getting: var client = new ...
0
votes
1answer
6 views

Set options to array field in Mongoose schema

How can I pass options such as required: true or default to an Array field? See the documentation here, it only shows examples like this one: ArrayOfString: [String] But I want to be able to do ...
0
votes
1answer
8 views

why is socket io not receiving messages in this situation?

I am trying to send a simple message between two routes using Node.js, socket.io, and Express. here are my express routes: app.get('/', routes.index); app.get('/controller', routes.controller); ...
0
votes
0answers
7 views

Attaching data to route definition in Express

Is there a way to attach additional data to route object in express when it is defined with app.get or app.post? I have an object that defines all routes and their parameters (config.routes) and I ...
0
votes
1answer
17 views

Node.js: npm doesn't install anymore

I don't know what I did wrong, but trying to install a module using npm returns errors. My concrete example (same results, no matter which module I would like to install): npm install socket.io ...
0
votes
1answer
18 views

Why does Grunt fail?

I'm getting a weird error after running npm run-script grunt in which it tell's me that node_modules/.bin/grunt fails. I'm following a tutorial as im pretty new to Backbone ...
4
votes
0answers
32 views

Inconsistent behavior with HTTP POST requests in Python

Trying to make a POST request between a Python (WSGI) and a NodeJS + Express application. They are on different servers. The problem is that when using different IP addresses (i.e. private network ...
0
votes
0answers
4 views

node grunt build issue

I am a trying to do a build using grunt via a node project (if that is the right wording, I am a complete newbie with these 2 technologies). I am trying to follow some instructions and after running ...
2
votes
0answers
20 views

fs.readFile anomaly

Trying to run a script that opens a bunch of files asynchronously and reads their content. I am getting an error where fs.readFile's callback comes in with no data, yet the file is there, and is not ...
0
votes
0answers
10 views

working with byte array data in node.js and how to process it

I need the entire byte array data fetched from a socket and after that I need to insert it into a database a BLOB. Do not ask me why I am not formatting the data from byte array, because I need to ...
1
vote
3answers
45 views

OOP with JavaScript

I'm coding with JavaScript on Node.js for the moment, and I was asking myself if there is a convenient way for using classes with private and public properties (and methods). I'm coming from PHP so ...
0
votes
1answer
14 views

Can't read 'null' returned objects from Mongoose

This is the code, is very simple: usermodel.findOne({ user: req.params.id }, function (err, user1){ if (err) throw err; console.log(user1.user); if (req.session.user != user1.user) { ...
0
votes
0answers
13 views

Collection Testing with Mocha

I am trying to iterate over a collection of properties and run tests against the properties. The parent object has some properties that are simple, and it has a property that is a collection of ...
0
votes
0answers
5 views

mongoose model storing permissions

I am currently working on a web application based on: nodejs express mongoose passportjs + localStrategy for authentication backbone for the client side express-resource for a RESTful API My ...
0
votes
1answer
32 views

Is it bad practice to to use wrapping anonymous function for module.exports in Node?

I've started to use wrapping anonymous function in my NodeJS express modules lately as it somehow helps me write cleaner code. However I'm not sure if this is considered bad/good practice in the Node ...

1 2 3 4 5 1170
15 30 50 per page