Skip to content

Append new headers to the client when reconnecting #865

Description

@cyyynthia

Is your feature request related to a problem? Please describe.
I'm developing a client for an app that accepts a Resume-Id header when reconnecting for resuming a session. For now it looks like it's impossible to alter the list of headers which is a requirement for that kind of stuff

Describe the solution you'd like
Allow headers to be added, maybe only when socket is not connected.

Describe alternatives you've considered
It can be a .addHeader function, or a hook "onBeforeConnect" to add headers there

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions