Code Monkey home page Code Monkey logo

Comments (4)

dsrees avatar dsrees commented on July 16, 2024

@jsmestad thanks for the question. Are you just trying to change the frequency of the heartbeat?

from swiftphoenixclient.

jsmestad avatar jsmestad commented on July 16, 2024

I am getting a bunch of phx_close events from the client to the server, so in an effort to debug I started to look to see if Heartbeat was even getting sent from the connection. As I started tracing through the Socket initialize methods, I cannot find a test or any code that makes me think the heartbeat timer ever starts.

I must be totally missing it... 🙃

from swiftphoenixclient.

dsrees avatar dsrees commented on July 16, 2024

The heartbeat timer gets recreated once the connection has been opened using the heartbeatInterval. If you're changing that interval after the connection is opened then it won't affect the heartbeat.

Which client version are you using?

Also have you provided a logging closure to the socket? That will print out everything that is happening client side.

    socket.logger = { msg in print("LOG:", msg) }

from swiftphoenixclient.

jsmestad avatar jsmestad commented on July 16, 2024

@dsrees ah there it is! I was going crazy thinking it had to exist.

I am using master at the moment

from swiftphoenixclient.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.