Skip to content

How to include a custom authentication token AFTER connect #684

Closed
@thebarndog

Description

@thebarndog

Once a client is connected, how can I attach custom headers that will be applied on the very next emit?

I'm using the client to retrieve an authentication token and then I want to attach that token to the client but .connectParams and .extraHeaders are only sent on the original connection.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions