Skip to content

.on('change') stops working #133

@behivetech

Description

@behivetech

When I implement...

client.on('change', (allFlagChanges) =>  {
       // do stuff
})

It works for about 5 minutes or so, then after a couple of failed heartbeats, it stops heartbeating and the on('change') stops working. The failure is ERR_INCOMPLETE_CHUNKED_ENCODING however the status is a 200 OK. Request URL: https://clientstream.launchdarkly.com/eval/ProbablyClientToken/ReallyReallyReallyLongToken

Is there some sort of work around for this or a way of detecting if the heartbeat is lost so I could maybe reinitialize the client or something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions