Closed fedulvtubudul closed 4 years ago
I've had to explicitly define Starscream dependency version, because it was updated recently and the latest version is not compatible anymore.
@fedulvtubudul thanks! Will try to make new release as soon as I have some time - hopefully later today or tomorrow
@fedulvtubudul just released 0.0.4 with these changes
Having these blocks marked as
escaping
is essential if theCentrifugeClientDelegate
implementation calls them not "inline" but asynchronously, which is the case for most real-life situations.In our case the delegate makes an async call to REST authorization service to provide fresh tokens:
As
requestCredentials
method is async and escapes it's completion block, the completion ofonRefresh
escapes as well.