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

  • Home
  • SEARCH
  • 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 7006293
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T21:27:34+00:00 2026-05-27T21:27:34+00:00

The socket.io documentation mentions that heartbeats can be disabled like so: io.disable(‘heartbeats’); Unfortunately, while

  • 0

The socket.io documentation mentions that heartbeats can be disabled like so:

io.disable('heartbeats');

Unfortunately, while this seems to stop the hearbeats from being sent, the clients still disconnect when they are not sending hearbeats.

The following does not function either:

io.set('heartbeats', false);

I have tried setting some intervals to 0, without success:

io.set('heartbeat timeout', 0);
io.set('heartbeat interval', 0);

Any suggestions on what might properly disable heartbeats?

  • 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-27T21:27:34+00:00Added an answer on May 27, 2026 at 9:27 pm

    The code is

    io.disable('heartbeats');
    

    Tested successfully on socket.io v0.8.7

    Without disabling

    debug - emitting heartbeat for client 299833185260419425
    debug - websocket writing 2::
    debug - set heartbeat timeout for client 299833185260419425
    debug - got heartbeat packet
    debug - cleared heartbeat timeout for client 299833185260419425
    debug - set heartbeat interval for client 299833185260419425
    

    With disabling

    debug – client authorized

    info  - handshake authorized 1205975980561506547
    debug - setting request GET /socket.io/1/websocket/1205975980561506547
    debug - client authorized for 
    debug - websocket writing 1::
    debug - websocket writing 5:::{"name":"news","args":[{"hello":"foo"}]}
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can node.js listen on UNIX socket? I did not find any documentation regarding this.
From this rpg socket tutorial we created a socket client in rpg that calls
Socket has a constructor that takes a winsock SOCKET as parameter and stores it
There is a socket related function call in my code, that function is from
It states in the MSDN documentation that: at the very minimum, your state parameter
I've seen in quickfix doxygen documentation that it generates an utc timestamp as soon
I am trying to make a socket server that spews mouse move events, in
It is written in the documentation : This function is used to asynchronously read
I'm writing a socket program that maintains FIFO queues for two input sockets. When
[EDITED] This issue was originally described as my having trouble with Perl's Socket, but

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.