This repository was archived by the owner on May 14, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +18
-6
lines changed Expand file tree Collapse file tree 1 file changed +18
-6
lines changed Original file line number Diff line number Diff line change 15
15
16
16
As of version 0.4, this library requires at least OS X 10.7 or iOS 5.0.
17
17
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
-
24
18
## Usage
25
19
26
20
The easiest way to connect to your Socket.IO / node.js server is
@@ -111,6 +105,24 @@ To process an incoming Message just
111
105
NSLog(@"didReceiveMessage() >>> data: %@", packet.data);
112
106
}
113
107
```
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
+ ```
114
126
115
127
## Authors
116
128
You can’t perform that action at this time.
0 commit comments