Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7512249
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T23:48:20+00:00 2026-05-29T23:48:20+00:00

My socket.io version is socket.io@0.8.7 and redis@0.7.1. I am on Windows. In some places,

  • 0

My socket.io version is socket.io@0.8.7 and redis@0.7.1.
I am on Windows.

In some places, I have seen that the issue is solved. I suppose I am using the latest socket.io version.
what is emitter.setMaxListeners() and where can I set it ?

(node) warning: possible EventEmitter memory leak detected. 11 listeners added.
Use emitter.setMaxListeners() to increase limit.
Trace:
    at RedisClient.<anonymous> (events.js:133:17)
    at Socket.<anonymous> (c:\HTML5\LIKEPREF\test\server\server.js:576:18)
    at Socket.$emit (events.js:67:17)
    at SocketNamespace.handlePacket (C:\Personal\software\nodejs\NODE\node_modul
es\socket.io\lib\namespace.js:335:22)
    at Manager.onClientMessage (C:\Personal\software\nodejs\NODE\node_modules\so
cket.io\lib\manager.js:459:38)
    at WebSocket.onMessage (C:\Personal\software\nodejs\NODE\node_modules\socket
.io\lib\transport.js:387:20)
    at Parser.<anonymous> (C:\Personal\software\nodejs\NODE\node_modules\socket.
io\lib\transports\websocket\hybi-16.js:40:10)
    at Parser.emit (events.js:67:17)
    at C:\Personal\software\nodejs\NODE\node_modules\socket.io\lib\transports\we
bsocket\hybi-16.js:286:16
    at Parser.expectHandler (C:\Personal\software\nodejs\NODE\node_modules\socke
t.io\lib\transports\websocket\hybi-16.js:297:15)

I am using redis pubsub and when i am subscribing to redis, at that point it throws up this warning.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T23:48:23+00:00Added an answer on May 29, 2026 at 11:48 pm

    There is a known issue associated with this. Looks like it was patched several months ago. The easiest fix is to set the maximum listeners to 0 which will remove the actual limit. So it would look something like this:

    this.sub = redis.createClient(opts.redisSub.port, opts.redisSub.host, opts.redisSub);
    this.sub.setMaxListeners(0);
    

    You can find the full discussion here: https://github.com/LearnBoost/socket.io/issues/520

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I use node.js and socket.io. I am using the latest version socket.io. I have
I use socket.io version 0.8.4 I have boiled down my problem to the following.
I'm experiencing some issues with rewriting my blocking socket server to a non-blocking version.
I'm using Socket.IO on Node.js. The Example here: http://socket.io/#how-to-use First Example. I have tested
I'm implementing a node.js server that manages bi-connections between users with socket.io (version:0.8.7). I
Scenario: Delphi 2010 running the latest Indy version from svn trunk. I have an
I'm trying to connect to a web service using IO::Socket::INET (yes, I know that
Possible Duplicate: socket.io.js not found I am using the most up to date version
I have a fairly simple game that works perfectly on every version now up
I had my server working with an earlier version of node.js, npm, and socket.io

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.