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
6 views
Listening on SSL with node.js on AWS Beanstalk
I have a node.js app running fine on Beanstalk but now I'm trying to set it up to use an SSL certificate to allow https access. However, any configuration settings I try to use apart from the default ...
0
votes
1answer
17 views
Callback function in node.js. TypeError: Cannot call method 'emit' of undefined
I’m still trying to get the hang of callbacks. Can someone explain why I cannot update my webpage using the callback from setInterval?
When I run the code, I get the error
/home/pi/Programming/RC ...
1
vote
1answer
10 views
Saving state of webpage with socket.io
I am creating a card game with node.js as the server , and i'm using web sockets (socket.io) to transfer the data from server to client .
so after the cards are dealt i want if someone refreshes the ...
0
votes
0answers
2 views
Is transform.push() and callback that the same for Node's new stream.Transform?
From Node's doc, to generate an output from a chunk is to call transform.push(outputChunk):
Call transform.push(outputChunk) 0 or more times to generate output
from this input chunk, depending ...
0
votes
0answers
16 views
jquery/node.js - XMLHTTPRequest stuck at readystate 1
I have a javascript/jquery code for which I am trying to create an automatic test framework. I have chosen to use node.js with buster as it seemed to be the easiest thing to automate. I have set up ...
0
votes
0answers
12 views
Why origin is not allowed by Access-Control-Allow-Origin?
In my node app, I am trying to allow an origin that starts with http://lvh.me
like this:
var app = require('http').createServer(handler)
, io = require('socket.io').listen(app)
, fs = ...
0
votes
0answers
3 views
how to use storeEval in soda
I try to run javascript in soda selenium test on the page and return its value as variable and use this value in next expressions in test. On http://jquery.com I try to get height of logo image using ...
0
votes
0answers
8 views
How to send IOS Push Notifications with Emoji in message in a NodeJS server?
I write some server code to send push notifications. I have a form field, called message. What I need is, putting some Emoji characters in the message.
If I write \ue48d , for a cloud character, ...
0
votes
0answers
8 views
use cradle to delete db but cache didn't reset
I use node 0.8.18, express3.2.5, cradle0.6.6. my problem is : after I saved a doc into db, then I delete db to reset my testcase env, but when I save the doc with the same id, cradle told me that doc ...
1
vote
1answer
18 views
How can I add CORS-Headers to a static connect server?
I am writing a little demo web server delivering static html,css and javascript.
The server looks like
(function () {
"use strict";
var http = require("http");
var connect = ...
0
votes
0answers
12 views
Nodejs Web Role Doesn't Run on Azure Local Compute Emulator
I have an azure web role that i created by following the steps laid out verbatim at http://www.windowsazure.com/en-us/develop/nodejs/tutorials/getting-started/.
However, when i do the ...
0
votes
0answers
26 views
Node.js get image from web and encode with base64
I'm trying to fetch an image from the web and encode it with base64.
what i have so far is basically:
var request = require('request');
var BufferList = require('bufferlist').BufferList;
bl = new ...
0
votes
1answer
8 views
Prevent require.extensions being modified in node.js
I am using IcedCoffeeScript. Some of my dependencies have a coffee-script dependency. When coffee-script is required it sets require.extensions['.coffee'] which overrides IcedCoffeeScript's extension.
...
0
votes
1answer
25 views
Express middleware: app.use and app.all
Is there a difference between
app.use('/some/path', function(req, res, next() {})
and
app.all('/some/path', function(req, res, next() {})
They are both middleware functions that get called for ...
0
votes
1answer
14 views
Grunt config - dynamic mapping
I have the following in my Gruntfile.coffee:
jade:
options:
data:
debug: false
firstLevel:
files: [
expand: true
...