File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ Socket.IO-client for iOS/OS X.
5
5
6
6
##Example
7
7
``` swift
8
+ import SocketIO
9
+
8
10
let socket = SocketIOClient (socketURL : NSURL (string : " http://localhost:8080" )! , config : [.Log (true ), .ForcePolling (true )])
9
11
10
12
socket.on (" connect" ) {data, ack in
@@ -26,6 +28,7 @@ socket.connect()
26
28
27
29
##Objective-C Example
28
30
``` objective-c
31
+ @import SocketIO;
29
32
NSURL * url = [[NSURL alloc ] initWithString: @"http://localhost:8080" ] ;
30
33
SocketIOClient* socket = [[ SocketIOClient alloc] initWithSocketURL: url config:@{@"log": @YES , @"forcePolling": @YES }] ;
31
34
@@ -115,13 +118,13 @@ Import the module:
115
118
116
119
Swift:
117
120
``` swift
118
- import SocketIOClientSwift
121
+ import SocketIO
119
122
```
120
123
121
124
Objective-C:
122
125
123
126
``` Objective-C
124
- @import SocketIOClientSwift ;
127
+ @import SocketIO ;
125
128
```
126
129
127
130
CocoaSeeds
You can’t perform that action at this time.
0 commit comments