facebookincubator/socketrocket

A conforming Objective-C WebSocket client library.

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 56 minutes ago
Added to GitGenius on September 6th, 2026
Created on January 30th, 2012
Open Issues & Pull Requests: 190 (+0)
GitHub issues: Enabled
Number of forks: 2,006
Total Stargazers: 9,604 (+0)
Total Subscribers: 330 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 13.7 days
Mean response time: 187.3 days
90th percentile: 728.9 days
Tracked items: 14

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 15
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 1,279 days
Stale 30+ days: 15
Stale 90+ days: 14

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

No label distribution available yet.

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

SocketRocket is a conforming Objective-C WebSocket client library for iOS, macOS, tvOS, and visionOS.

The tool solves the problem of establishing reliable WebSocket connections in Apple platforms by implementing RFC 6455 compliance. It handles the complexity of WebSocket protocol negotiation and communication through an asynchronous, non-blocking architecture where most work occurs on a background thread.

Developers building native Apple applications that require WebSocket connectivity should consider SocketRocket if they need a mature, standards-compliant implementation. The tool suits projects ranging from real-time chat applications to live data streaming. It can be integrated via CocoaPods, Carthage, or as a subproject within an Xcode workspace. The library performs well according to its own benchmarks and passes the vast majority of Autobahn's fuzzing test suite, with only minor non-strict UTF-8 validation differences from the reference implementation.

The project maintains active test coverage through an included test suite that can run from the command line or within Xcode, supported by Python-based testing infrastructure. A demo application called TestChat is provided to illustrate real-world usage patterns with both Python and Go server implementations available for testing purposes. The codebase includes comprehensive documentation of its core API through the SRWebSocket class and SRWebSocketDelegate protocol, with clear guidance on memory management behavior during connection lifecycle.