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.
0
votes
0answers
5 views
How to keep the stack or the callers of async methods when this stack is quite big (node.js)?
I have an app that has async into async many times and I'm having difficulties in knowing from where that call came and with which variables. There is any workaround?
The reason I'm having problems ...
3
votes
2answers
655 views
facebook and socket.io node.js
I have a some god idea, but I have some problems... how to connect facebook user to node app - socket.io
I was created an socket.io chat but now want to allow facebook users to come to chat to ...
1
vote
2answers
13 views
node js incoming request sourceIP
For example:
http.createServer(function (request, response) {
request.on("end", function () {
});
});
Using Request, how I can I find the source IP of the request?
0
votes
0answers
10 views
H15 on Heroku SSE request
I have a Node.js application on Heroku. I've recently switched a long query to use SSE (EventSource). While it works great and fast on my machine, I keep getting an Error H15 (Idle connection) on my ...
1
vote
3answers
36 views
Node.js: client doesn't die when TCP connection closes
I built a simple tcp server and a simple tcp client in Node.js
Now, when the client send "exit" to the server, the connection was successfully closed, server delete the socket from his sockets list ...
1
vote
1answer
32 views
node.js - templates / rendering — how can I exclude or specify an alternate layout.mustache for one of my views?
Currently all pages are rendered from a views/layout.mustache file and a page-specific views/page.mustache template
I want to use an alternate layout.mustache and/or skip the layout.mustache ...
1
vote
1answer
11 views
node js getting the HTTP Request name
http.createServer(function (request, response) {
request.on("end", function () {
if(request.method='PUT')
{
buf1='This is PUT';
console.log('received PUT');
}
...
1
vote
1answer
20 views
node js and json.s
I am looking how I can use node.js to decode json.
My Application is very simple.
I will get a Request: PUT with json.
I need to check the json body for some value if that is present send a succuess ...
0
votes
1answer
25 views
windows azure sdk localhost for node.js
I am running a helloworld program using node.js and windows azure sdk.
If I keep : 127.0.0.1:81
This link works and I get the hello world printed on the browser.
But when I try:
...
0
votes
1answer
32 views
Mongodb running with node and PHP
I am new to Node.js and MongoDB. I have successfully got the mongoDB running with node.js and am able to start it up and store data inside of collections. So the server is already running on ...
4
votes
1answer
133 views
When to use Meteor.methods and utilizing stubs
Using Meteor, I'm attempting to understand when to use server-side Meteor.methods() while still retaining instant UI updates.
From Andrew Scala's introductory tutorial, he claims that ...
1
vote
4answers
119 views
Is node.js rmdir recursive ? Will it work on non empty directories?
The documentation for fs.rmdir is very short and doesn't explain the behavior of rmdir when the directory is not empty.
Q: What happens if I try to use this API to delete a non empty directory ?
0
votes
3answers
79 views
Return an associative array instead of a document array in mongoose
Let's suppose I have a Word model with this schema
var Word = new Schema({
name: { type: String, required: true },
disambiguation: String,
partOfSpeech: { type: ObjectId, ref: "PartOfSpeech", ...
1
vote
1answer
19 views
NodeJS Crypto with RC4 yields blank
I have a php function that generates an RC4 encrypted string. I would like to decode that string using Node - ideally using the built in Crypto module. But I am unable to do so - I just get a blank ...
1
vote
1answer
535 views
How to gZip content that's passed through a piped readStream
Im currently working on a project that requires the content to be gZip-ed before it's sent back to the browser.
Im currently using a simple read stream and piping the data to the response of a ...