Skip to content

Make it possible to change headers when reconnecting #9

Description

@pks5

Hi,

i try to manually reconnect the StompClient if the underlying websocket connection has been closed. Therefore i try to call connectAsync again. Unfortunately it fails, because it tries to set the X-Authorization header again, which already exists in the dictionary in StompClient.cs. But i need to be able to update the X-Authorization header, in case the access token changed in the meantime or needed to be refreshed.

In general, is it ok to call connectAsync again, if the socket has been closed?

Regards,
Jan

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

    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