@@ -97,24 +97,31 @@ be removed in upcoming releases:
97
97
- (void ) socketIO:(SocketIO *)socket failedToConnectWithError:(NSError *)error;
98
98
```
99
99
100
- To process an incoming Message just
100
+ To process an incoming ` message ` or ` event ` just
101
101
102
102
``` objective-c
103
+ // message delegate
103
104
- (void ) socketIO:(SocketIO *)socket didReceiveMessage:(SocketIOPacket *)packet
104
105
{
105
- NSLog(@"didReceiveMessage() >>> data: %@", packet.data);
106
+ NSLog(@"didReceiveMessage >>> data: %@", packet.data);
107
+ }
108
+
109
+ // event delegate
110
+ - (void ) socketIO:(SocketIO *)socket didReceiveEvent:(SocketIOPacket *)packet
111
+ {
112
+ NSLog(@"didReceiveEvent >>> data: %@", packet.data);
106
113
}
107
114
```
108
115
109
116
## Usage with OS X
110
117
111
- Running the socket.io-objc with OS X requires some minor changes:
118
+ Running the socket.io-objc library with OS X requires some minor changes:
112
119
113
120
- you have to use the SocketRocket.framework for OSX instead of just the submodule
114
121
see: [ SocketRocket's Installing OS X] ( https://github.com/square/SocketRocket#installing-os-x )
115
122
(best way I got this to work was as a subproject and I didn't have to add the "copy file" stuff)
116
123
117
- - when using the other framework, you have to fix the import-statement in SocketIOTransportWebsocket.h
124
+ - when using the osx- framework, you have to fix the import-statement in SocketIOTransportWebsocket.h
118
125
119
126
``` objective-c
120
127
// replace
@@ -135,7 +142,7 @@ Different Socket Libraries + Error Handling by taiyangc <https://github.com/taiy
135
142
136
143
(The MIT License)
137
144
138
- Copyright (c) 2011-13 Philipp Kyeck < http://beta-interactive.de >
145
+ Copyright (c) 2011-14 Philipp Kyeck < http://beta-interactive.de >
139
146
140
147
Permission is hereby granted, free of charge, to any person obtaining a copy
141
148
of this software and associated documentation files (the "Software"), to deal
0 commit comments