Open Gabiras12 opened 3 years ago
@lukeed can we have this merged?
+1 to @Gabiras12 @lukeed let us know if this PR could be merged and released.
bump!
@ghost and @exaucae I've published this PR under sockette-dynamic-url https://www.npmjs.com/package/sockette-dynamic-url
As requested by issue #59 my use case is the same. I need to pass a token on every connection attempt and it's only possible to use the token once. So the url must change on every reconnect attempt.
If url param is a function invoke it passing the attempt number
Solution: Change the url param to be of type:
So the usage would look like: