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.

  1. Add the following line to your Podfile:
pod 'SocketRocket'
  1. Run the installation command:
pod install

Carthage

Carthage is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.

  1. Add the following line to your Cartfile:
github "facebook/SocketRocket"
  1. Run the update command:
carthage update
  1. Drag the built SocketRocket.framework into your Xcode project.

Manual Installation

While not recommended due to the overhead of managing updates, you can include SocketRocket as a sub-project.

  1. Download or clone the repository.
  2. Drag SocketRocket.xcodeproj into your project's workspace.
  3. Add SocketRocket to your Target Dependencies and Link Binary With Libraries build phases.

Note: Integrating manually may significantly increase your project's indexing time.