Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What's new
This is a preparatory step on the road to compiling SocketRocket directly into ably-cocoa, as described in this comment on ably/ably-cocoa#949.
It changes the naming so that things look like Ably code - specifically, replacing the
SR
namespace withARTSR
.With this change, an application could in theory use both our SocketRocket fork and its own version of SocketRocket without experiencing any issues.
Notes
Normally, in a fork, a big rename like this would be something to be very careful about because it makes it very difficult to merge further changes from upstream. But the upstream project is well and truly dead, so I don't think we need be concerned.
Questions for reviewers
Cartfile
in ably-cocoa to point to this changed version, and I had 3 failing tests when running the tests inside Xcode 12. But I don't know whether that's to be expected or not. And I also pushed it to a private CocoaPods repository and checked that I was able to compile an app that uses this version of the library.What's next