node.js-domains Questions

5

How can I create Express/Connect middleware which wrap each request in its own domain?
Relax asked 22/7, 2012 at 11:7

3

We can access local module using require function but cannot access global module through it. I read somewhere that to use global module we need to make it local then import it through require fun...

1

Solved

My use case requires node.js domains to share information across server files at a request level. Sample Implementation in express.js domain = require('domain'); app.use(function(req, res, next...

4

I'm just starting using domains in nodejs for error management. There's something I cant understand when I use them with socket.io. That's my example code: io.sockets.on('connection', function c...
Mitziemitzl asked 23/4, 2013 at 16:36

2

Solved

I have been reading for hours on exception handling in Node. I understand the cons of using uncaughtException, I understand that shutting down the process is good for preventing any "unknown state"...

5

Solved

I want to use Node.js Domains to catch exceptions. It is working so far, but there is one place I can't get domains to catch the exception. exception2 in the callback is caught and handled in the d...
Radiolarian asked 5/11, 2012 at 8:48

1

I'm having an issue with the domain module. Currently, I'm trying to catch any uncaught errors that are thrown in a request. Using an express middleware and domains. All requests are routed through...
Copley asked 20/2, 2013 at 1:55
1

© 2022 - 2024 — McMap. All rights reserved.