Questions tagged [node.js]
Node.js is an event-based, non-blocking, asynchronous I/O runtime that uses Google's V8 JavaScript engine and libuv library. It is used for developing applications that make heavy use of the ability to run JavaScript both on the client as well as on the server side and therefore benefit from the re-usability of code and the lack of context switching.
node.js
473,551
questions
2
votes
2
answers
508
views
Long polling server principle (client identification)
I want to create a simple long polling server in node.js where communication will be based on jsonp requests. I understand that client makes request and server holds response until some data are ready ...
1
vote
4
answers
716
views
Should I re-write my game server, write a forwarder, or use a new plugin?
I have a game server written in python and twisted, and an old game client also in python. I have written a new game client in Javascript, which will connect with websockets. Now I face a design ...
0
votes
2
answers
275
views
User interacting interpreter in a non-blocking single-threaded environment (tricky)
For a school project me and a classmate are writing a domain-specific language in javascript (node). The language contains statements that require user input via a Websocket connection.
When a ...
10
votes
4
answers
2k
views
MongoDb vs CouchDb: write speeds for geographically remote clients
I would like all of my users to be able to read and write to the datastore very quickly. It seems like MongoDb has blazing reads, but the writes seem like they could be very very slow if the one ...
3
votes
3
answers
444
views
What are the differences between Opera Unite and Node.js?
Both seem to allow coding applications entirely in JavaScript. Both allow server side JS as well as client-side JS.
So, from a technology and programming standpoint, what is the difference between ...
0
votes
2
answers
542
views
Node.js core dumps on Windows 7
I am on windows 7 and installed Node.js using this tutorial:
http://howtonode.org/how-to-install-nodejs
When I am trying to run the tests , everything "CRASHES" (I don`t know why) and when I am ...
0
votes
2
answers
161
views
Is it possible to load the CSS stylesheets applied to a DOM in node.js?
This is a snippet of what I'm trying to do at the moment:
var sys = require("sys"),
request = require("request"),
$ = require("jquery"),
uri = 'http://' + process.argv[2];
...
0
votes
1
answer
776
views
How can you use selectors that match multiple nodes via jsdom/jquery in node.js?
I have a very simple example thus far, I'm basically trying to rip the path to a logo from a website dynamically.
var sys = require("sys"),
request = require("request"),
$ = require("jquery"),
...
164
votes
23
answers
64k
views
How to avoid long nesting of asynchronous functions in Node.js
I want to make a page that displays some data from a DB, so I have created some functions that get that data from my DB. I'm just a newbie in Node.js, so as far as I understand, if I want to use all ...
2
votes
1
answer
1k
views
Node.js and SSL with Restler
I have installed latest version of Node.js and I still have problems with SSL and Restler. Where's the problem? Thank you!
Request
var restler = require('./lib/restler');
restler.get('https://...
2
votes
1
answer
3k
views
Install node.js on PowerVPS
I have one VPS from PowerVPS which has CentOS 5.5 (default configuration).
I need to install Node.JS for an Ajax IM installation.
Does anyone have any advice/information on how to install Node.JS on ...
185
votes
24
answers
118k
views
How to check whether a script is running under Node.js?
I have a script I am requiring from a Node.js script, which I want to keep JavaScript engine independent.
For example, I want to do exports.x = y; only if it’s running under Node.js. How can I ...
6
votes
5
answers
5k
views
V8 engine compiles JavaScript to machine code. So, why node.js isn't faster than C?
According to language benchmarks, JavaScript V8 is faster than other programming languages at regex-dna program. So, why node.js applications (i.e. http server) isn't faster than C applications (i.e. ...
6
votes
1
answer
6k
views
node.js concurrency
I'm new in node.js. I'm testing socket.io for real time messaging. I love it and I want to use. I have a question. How many concurrency can run in Node.js server ? Our program will be approximately ...
80
votes
7
answers
68k
views
Make node.js not exit on error
I am working on a websocket oriented node.js server using Socket.IO. I noticed a bug where certain browsers aren't following the correct connect procedure to the server, and the code isn't written to ...