HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
samlown
cocoa-websocket
Objective-C2012–2012
samlown / cocoa-websocket

cocoa-websocket

A fork of cocoa-websocket that handles errors and disconnections in a more robust fashion.

2Distinct people
2Mentions
0Explicit recommenders
5GitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

A fork of cocoa-websocket that handles errors and disconnections in a more robust fashion.

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 3:56:07 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by hour2 dated mentions

Observed mentions: 2012-02-07 20:48:55 UTC to 2012-02-07 21:38:12 UTC.

012012-02-07 20:00:00 UTC to 2012-02-07 21:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 commentsFeb 7, 20:002012-02-07 21:00:00 UTC to 2012-02-07 22:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 commentsFeb 7, 21:00

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
Feb 7, 20:002012-02-07 20:00:00 UTC2012-02-07 21:00:00 UTC101
Feb 7, 21:002012-02-07 21:00:00 UTC2012-02-07 22:00:00 UTC101

What Hacker News says

2 sources
Cocoa-websocket doesn't seem to support the latest standard[1]. You can tell because the handshake has key1 and key2 which is protocol 00[2] Re: socket.IO, I haven't actually used it, so correct me if my assumptions are wrong, but the objc client doesn't seem to use WebSockets as a transport. So I imagine you can get the same bidirectional semantics if by using socket.IO-objc if you want to limit yourself to servers written in node (or have a socket.IO bridge). However, why not go with standards? Since socket.IO supports websockets, the objc implementation could be backed by SocketRocket easily. My two biggest complaints against Unitt & cocoa-websocket aside from them not supporting RFC6455 is having CocoaAsyncSocket as a dependency. I've dug deep into it's implementation, and even had a prototype of SocketRocket that used it (basicall
Read the rest
y went from CocoaAsync to dispatch_io to CFStream), and I'm not too impressed. Also, CocoAsync 2x or 3x more code than the entire WebSocket implementation without it. It also has drastically different codepaths for iOS and Cocoa and it's very difficult to see what's going on. Makes testing more difficult. The other reason I decided to roll my own is just a learning experience. At first I wanted an excuse to play with new libdispatch io stuff[3]. [1] https://github.com/samlown/cocoa-websocket/blob/master/WebSo... [2] http://en.wikipedia.org/wiki/WebSocket#draft-ietf-hybi-thewe... [3] http://www.opensource.apple.com/source/libdispatch/libdispat...
In Square Releases Open Source WebSocket Client for Objective-C
So, following up on the link in another comment on this article [1] to socket.IO-objc [2], one goes through a few forks of cocoa-websocket [3,4,5] to arrive at zimt [6]. Are there reasons to use SocketRocket over these other libraries (either socket.IO-objc, or the various forked lineage of cocoa-websocket/zimt)? (Also, to ask the question I always have to ask: is there a reason for a new library rather than contributing to one of the existing ones, possibly even helping Unitt support RFC6455?) [1] http://news.ycombinator.com/item?id=3563527 [2] https://github.com/pkyeck/socket.IO-objc [3] https://github.com/samlown/cocoa-websocket [4] https://github.com/adamjernst/cocoa-websocket [5] https://github.com/erichocean/cocoa-websocket [6] https://github.com/esad/zimt
In Square Releases Open Source WebSocket Client for Objective-C

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.