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.

console socket.io spam

See original GitHub issue

When BrowserSync is running, the console is just constantly spammed with the following every few milliseconds:

engine.io-client:socket socket receive: type "pong", data "undefined" +1ms
engine.io-client:socket writing ping packet - expecting pong within 60000ms +6ms

This makes standard debugging with console.log() impossible, and floods out any other logging. Is there an option or something I can do to disable this message?

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Reactions:1
  • Comments:20 (8 by maintainers)

github_iconTop GitHub Comments

7reactions
shinnncommented, Mar 2, 2015

Ah, OK. I found a temporary solution.

  1. Open the browser console on your site (which spamming a lot of logs)
  2. Type localStorage.debug = '' and ↩️
  3. Reload the browser

Maybe this will do the trick.

0reactions
ramiyahyacommented, Oct 20, 2016

Having the same issue on Sierra OSX 10.12 Node 6

Logs appear on all browsers.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Prevent socket.io spamming sockets - Stack Overflow
Looking at https://socket.io/docs/v3/server-api/, you can use socket.handshake.address to get the IP of the connecting client.
Read more >
Spam server Socket.IO cycles · Issue #2627 - GitHub
What I do is I try to determine a reasonable interval between socket emits. I then add a timer to the socket object...
Read more >
Logging and debugging | Socket.IO
Before 1.0, the Socket.IO server would default to logging everything out to the console. This turned out to be annoyingly verbose for many...
Read more >
socket-io-anti-spam - npm
This module prevents socket.emit spams by clients via ip bans. Latest version: 2.5.0, last published: 4 years ago. Start using socket-io-anti-spam in your ......
Read more >
module socket-anti-spam function
````js const antiSpam = require('socket-anti-spam') const bans = antiSpam.getBans() console.log(bans) // Returns a array full of ip's that are currently ...
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