Report
Question
I have a conversation schema which will allow users for private messaging, each two users can be in ONE conversation therefore, the recipients in the conversations should be unique /** Users in this conversation**/ var usersSchema = new Schema({ ...

Please briefly explain why you feel this question should be reported .

Report Cancel
solved 0
1 Answer 4 views

Report
Question
I’m running this Express app: var express = require("express"); var favicon = require("serve-favicon"); var path = require("path"); var app = express(); app.use(express.static(__dirname + '/private/')); app.get("/", function(req, res){ res.sendFile(__dirname + "/public/index.html"); console.log("Visited "+req.url); }); app.get("/products", function(req, res){ res.sendFile(path.join(__dirname, "/public/products.html")); ...

Please briefly explain why you feel this question should be reported .

Report Cancel
solved 0
1 Answer 3 views

Report
Question
Im trying to share session between socket io and express 4 using the code of express-generator, so im using a shared variable “sessionMiddleware” with socket.io and Express but seem like socket.io not finding connect.sid cookie and the express session here ...

Please briefly explain why you feel this question should be reported .

Report Cancel
0
0 Answer 3 views

Report
Question
Created a custom route that gets called and still returns a response, but I receive console errors about the route being unmatched. If the action of the route goes longer than a certain amount of time, the route will return ...

Please briefly explain why you feel this question should be reported .

Report Cancel
0
0 Answer 6 views

Report
Question
I am working on a ExpressJS and MongoDB project that involves parsing dynamic mongoose schema. The way I set up the dynamic schema is and parse it : Step-1 //Creating a mongoose schema var userSchema = mongoose.Schema({ measurements : [ ...

Please briefly explain why you feel this question should be reported .

Report Cancel
solved 0
1 Answer 7 views

Report
Question
Response status passes and fails under my control. But I can’t see to get the expect(res.body) test to pass. Route displays exactly as programmed when viewed in the browser. but mocha/chai test for testing what is rendered ...

Please briefly explain why you feel this question should be reported .

Report Cancel
solved 0
1 Answer 14 views

Report
Question
I was working on nodejs executing python scripts using spawn and socket.io methods. I am getting output on the console. but I am not able to display it on the browser. It is showing error.I have pasted the error below. ...

Please briefly explain why you feel this question should be reported .

Report Cancel
solved 0
1 Answer 5 views

Report
Question
I’m using passportjs for the authentication and session. I get the ussername from mysql and the input field from client side but when the done is called on verification, I get done is not a function. The server.js : ...

Please briefly explain why you feel this question should be reported .

Report Cancel
solved 0
1 Answer 9 views