talira

SocketRocket

A WebSocket client library for iOS, macOS, tvOS and visionOS

open sourceBSD-3-Clausefree

SocketRocket is an Objective-C WebSocket client library from Meta for iOS, macOS, tvOS and visionOS. It conforms to RFC 6455 and passes the Autobahn test suite's core fuzzing tests, supports TLS (wss) including self-signed certificates and certificate pinning, HTTP proxies, IPv4 and IPv6, and ping and pong, and does most of its work asynchronously on a background thread. It installs with CocoaPods or Carthage and is BSD licensed.

Problems it solves

  • connect an iOS app to a WebSocket server
  • open a secure wss connection with certificate pinning from a macOS app
  • keep a realtime WebSocket connection open in an Objective-C app

Features

  • RFC 6455 conformance, tested with Autobahn
  • TLS (wss), self-signed certificates and certificate pinning
  • HTTP proxy support
  • IPv4 and IPv6
  • Ping and pong
  • Asynchronous, non-blocking I/O on a background thread