Kwang Kwang - 1 year ago 112
Node.js Question keeps reconnecting, even i don't use now

I've run the chatting server and delete it.

So, I don't have any file which uses

'use strict'
express = require('express')
,mongoose = require('mongoose')
,logger = require('morgan')

app = express()

// === db setting ===

// === initial setting ===
app.set('view engine', 'pug');
app.set('views', './views');

// === 3rd party middlewares ===

// === router ===
app.get('/', (req, res, next) => {
res.send('hello world');

// === error handler ===

// === server running ===
app.listen(8000, () => {
console.log('=== server is running ===');

However when i run the new server, it keeps showing me this message below.

How can i fix this?

enter image description here

Answer Source

This shows that you have some client code in front-end code somewhere (e.g. some web page attempting to use your server) that is trying to connect to to your server using but failing.

To stop this from happening, you need to remove the code from your web page.

Probably there is a line of code in your web page somewhere that looks like this:

var socket = io();

Remove that from the web page (and other references to

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download