Installation
SocketRocket can be installed using standard iOS/macOS dependency managers or integrated manually.
CocoaPods
CocoaPods is the recommended way to add SocketRocket to your project.
- Add the following line to your
Podfile:
pod 'SocketRocket'
- Run the installation command:
pod install
Carthage
Carthage is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.
- Add the following line to your
Cartfile:
github "facebook/SocketRocket"
- Run the update command:
carthage update
- Drag the built
SocketRocket.frameworkinto your Xcode project.
Manual Installation
While not recommended due to the overhead of managing updates, you can include SocketRocket as a sub-project.
- Download or clone the repository.
- Drag
SocketRocket.xcodeprojinto your project's workspace. - Add
SocketRocketto your Target Dependencies and Link Binary With Libraries build phases.
Note: Integrating manually may significantly increase your project's indexing time.