Skip to content

Changing a client's URL #1093

Answered by JoviDeCroock
codazzo asked this question in Q&A
Oct 28, 2020 · 2 comments · 3 replies
Discussion options

You must be logged in to vote

Hey

I once made an exchange with this purpose, multi-endpoints exchange which allows you to choose url's given certain conditions 003c0a1.

For the case of recreating the client, I'd advise on that for your particular customer, this mainly because it also resets the state, ... Mutating the url would be a last resort imo. You can also make a custom wrapper for your hook-calls and pass in the url through the context parameter.

In short, your approach seems fine to me personally and can be expanded on for cache-clearing, ...

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@codazzo
Comment options

Answer selected by codazzo
Comment options

You must be logged in to vote
2 replies
@JoviDeCroock
Comment options

@chriszrc
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants