skip to Main Content

no socket io connection being made – Reactjs

All versions installed of socket.io and socket.io-client are the same in my mern app. Here is my server code: const app = express(); mongoose.connect(MONGOOSE_URL, { useNewUrlParser: true, useUnifiedTopology: true, }).then(() => { console.log(`MongoDB connected successfully`); }).catch((error) => console.log(`${error} did not…

VIEW QUESTION

Mongodb – Mongoose POST method

I am building a MERN app where I want to use a POST method to send data to my collection in MONGODB. I imported schema as Messages here is the code app.post("/messages/new",(req,res) => { const dbMessage = req.body; Messages.create(dbMessage,(err,data) =>…

VIEW QUESTION
Back To Top
Search