Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 35841

Node.js is an event-based, asynchronous I/O framework that uses Google's V8 JavaScript engine.

19 votes

Why do req.params, req.query and req.body exist?

All three properties are populated from different sources: req.query comes from query parameters in the URL such as http://foo.com/somePath?name=ted where req.query.name === "ted". req.params comes …
jfriend00's user avatar
  • 3,607
1 vote

Alternatives for Node.js environment specific code

For reasons I can't quite explain, the push to stand-alone modularity in node.js seems to pull people away from creating common utility function that multiple modules can use. …
jfriend00's user avatar
  • 3,607
0 votes
Accepted

TCP connection-oriented synchronous data write

This really depends upon how many devices you're trying to support and how often a transaction occurs with a given device and how much data is involved for a given device. Based on that, reasonable so …
jfriend00's user avatar
  • 3,607
2 votes
Accepted

Implement a HTTP server on top of NodeJS TCP APIs for learning purposes

Yes, it is entirely possible. All you need at the core is the ability to have TCP server accepting inbound TCP connections in order to then implement your own HTTP server on top of that. The Net mo …
jfriend00's user avatar
  • 3,607
7 votes
Accepted

What is the point of rooms in socket.io?

Rooms are a tool in socket.io servers for keeping track of groups of connected users. You can then iterate the sockets in a room or broadcast to all of them. There's really nothing more to them than …
jfriend00's user avatar
  • 3,607
6 votes

Stateful vs non-stateful app

If you are storing state on the server that is needed in order to process an incoming request from the client, then the server is stateful. Said another way, it has state that it stores and needs to …
jfriend00's user avatar
  • 3,607
7 votes
Accepted

Nodejs cluster: are there any downsides?

Updates to shared state in a separate process are not immune to race conditions when you have multiple node.js processes all able to access it so you have to code shared state updates appropriately to …
jfriend00's user avatar
  • 3,607
14 votes
Accepted

What determines which Javascript functions are blocking vs non-blocking?

In general, any function that does networking or uses timers to do things over a period of time will be asynchronous. If the function takes a callback, you can look at what the callback is used for …
jfriend00's user avatar
  • 3,607