Skip to content

Make it possible to change headers when reconnecting #9

@pks5

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

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