Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "setHeader" to add/change headers on websocket client #169

Open
tyagoy opened this issue Sep 6, 2024 · 0 comments
Open

Add "setHeader" to add/change headers on websocket client #169

tyagoy opened this issue Sep 6, 2024 · 0 comments
Assignees

Comments

@tyagoy
Copy link

tyagoy commented Sep 6, 2024

I am developing a project where each time the connection is closed, I generate a new token and add the header to the client using the "addHeader" API. The problem is that this API is not suitable for modifying headers; this method performs a "_customHeaders.push_back". If a specific header needs to be changed, there is no API to do that. Moreover, this "push_back" might start accumulating memory if called multiple times. I believe it would be good to have a new "setHeader" method that adds and/or modifies a header in "_customHeaders".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants