question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

A lot of connections

See original GitHub issue

Note: for support questions, please use one of these channels: stackoverflow or slack

You want to:

  • report a bug
  • request a feature

Current behaviour

Server Side

Steps to reproduce (if the current behaviour is a bug)

Note: the best way to get a quick answer is to provide a failing test case, by forking the following fiddle for example.

Expected behaviour

Setup

  • OS: Windows 10 PRO
  • browser: Chrome
  • socket.io version: Latest

Other information (e.g. stacktraces, related issues, suggestions how to fix)

Code:

var app = require('express')();
var http = require('http').Server(app);
var io = require('socket.io')(http);
var port = process.env.PORT || 3000;

app.get('/', function(req, res){
  res.sendFile(__dirname + '/index.html');
});

io.on('connection', function(socket){
  console.log('connected')
  socket.on('chat message', function(msg){
    io.emit('chat message', msg);
  });
});

http.listen(port, function(){
  console.log('listening on *:' + port);
});

When I run that, and I go to localhost:3000 port, it spams in console: connected

http://prntscr.com/jsheg4

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
darrachequesnecommented, Feb 23, 2021

Closed due to inactivity, please reopen if needed.

0reactions
ItamarShDevcommented, Dec 30, 2018

You can easily reproduce it in the chat example by upgrading the version to 2.2.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

12 Words and Phrases for Lots Of Connections
12 other terms for lots of connections. lot of connections · very well connected · lot of contacts · lot of knowledge ·...
Read more >
I have lots of connections | English examples in context - Ludwig
High quality example sentences with “I have lots of connections” in context from reliable sources - Ludwig is the linguistic search engine that...
Read more >
Is having a lot of connections in LinkedIn of any importance?
If you want to connect with a lot of important people relevant to your field then go for it.
Read more >
Clue: Co. with a lot of connections? - Crossword Tracker
with a lot of connections? is a crossword puzzle clue that we have spotted 1 time. There are related clues (shown below). Referring...
Read more >
10 Ways To Build Connections and Why They're Important
New job opportunities. Professional connections are an excellent way to find new career opportunities. · Mentorship relationships · Increased ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found