Simple chat app that uses MongoDB and Socket.io
1.0.0
npm install
npm start
Open index.html
Simple chat app using Mongo and websockets
Aft
throw err
^
MongoError: failed to connect to server [127.0.0.1:27017] on first connect [MongoError: connect ECONNREFUSED 127.0.0.1:27017]
can anyone body please tell me that, that if entered message is too long then it overlap with the below text area.
How to solve this issue. Tnks in advance
Microsoft Windows [Version 10.0.17134.829]
(c) 2018 Microsoft Corporation. All rights reserved.
C:\Users\HP\Desktop\modified Sknchat>npm start
[email protected] start C:\Users\HP\Desktop\modified Sknchat
node server.js
(node:18280) DeprecationWarning: current URL string parser is deprecated, and will be removed in a future version. To use the new parser, pass option { useNewUrlParser: true } to MongoClient.connect.
(node:18280) DeprecationWarning: current Server Discovery and Monitoring engine is deprecated, and will be removed in a future version. To use the new Server Discover and Monitoring engine, pass option { useUnifiedTopology: true } to the MongoClient constructor.
C:\Users\HP\Desktop\modified Sknchat\node_modules\mongodb\lib\topologies\server.js:240
throw err;
^
MongoNetworkError: failed to connect to server [127.0.0.1:27017] on first connect [MongoNetworkError: connect ECONNREFUSED 127.0.0.1:27017]
at Pool. (C:\Users\HP\Desktop\modified Sknchat\node_modules\mongodb\lib\core\topologies\server.js:431:11)
at Pool.emit (events.js:182:13)
at connect (C:\Users\HP\Desktop\modified Sknchat\node_modules\mongodb\lib\core\connection\pool.js:580:14)
at makeConnection (C:\Users\HP\Desktop\modified Sknchat\node_modules\mongodb\lib\core\connection\connect.js:39:11)
at callback (C:\Users\HP\Desktop\modified Sknchat\node_modules\mongodb\lib\core\connection\connect.js:261:5)
at Socket.err (C:\Users\HP\Desktop\modified Sknchat\node_modules\mongodb\lib\core\connection\connect.js:286:7)
at Object.onceWrapper (events.js:273:13)
at Socket.emit (events.js:182:13)
at emitErrorNT (internal/streams/destroy.js:82:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:50:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: node server.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\HP\AppData\Roaming\npm-cache_logs\2019-09-17T18_05_33_397Z-debug.log
C:\Users\HP\Desktop\modified Sknchat>
polling-xhr.js:264 GET http://localhost/socket.io/?EIO=3&transport=polling&t=MO9LTIe net::ERR_CONNECTION_REFUSED
I followed this tutorial from start to end by myself and end up with this issue. And again I cloned this repo to check if I was missing something and ran up to the same kind of error. Somewhere in the github I read that it is a chrome bug.
sir, there are some changes , which need to be added to your code
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.