Skip to content
This repository was archived by the owner on May 14, 2024. It is now read-only.

Commit d471912

Browse files
committed
update readme: add OSX install instructions + remove ARC chapter
1 parent 016a438 commit d471912

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

README.md

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,6 @@
1515

1616
As of version 0.4, this library requires at least OS X 10.7 or iOS 5.0.
1717

18-
19-
## Non-ARC version
20-
21-
If you're old school - there's still the [non-ARC version](https://github.com/pkyeck/socket.IO-objc/tree/non-arc) for you.
22-
This version (the non-ARC one) is out-of-date and won't be maintained any further (at least not by me).
23-
2418
## Usage
2519

2620
The easiest way to connect to your Socket.IO / node.js server is
@@ -111,6 +105,24 @@ To process an incoming Message just
111105
NSLog(@"didReceiveMessage() >>> data: %@", packet.data);
112106
}
113107
```
108+
109+
## Usage with OS X
110+
111+
Running the socket.io-objc with OS X requires some minor changes:
112+
113+
- you have to use the SocketRocket.framework for OSX instead of just the submodule
114+
see: [SocketRocket's Installing OS X](https://github.com/square/SocketRocket#installing-os-x)
115+
(best way I got this to work was as a subproject and I didn't have to add the "copy file" stuff)
116+
117+
- when using the other framework, you have to fix the import-statement in SocketIOTransportWebsocket.h
118+
119+
``` objective-c
120+
// replace
121+
#import SRWebSocket.h
122+
123+
// with
124+
#import <SocketRocket/SRWebSocket.h>
125+
```
114126

115127
## Authors
116128

0 commit comments

Comments
 (0)