File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 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.
55
66##Example
77``` swift
8+ import SocketIO
9+
810let socket = SocketIOClient (socketURL : NSURL (string : " http://localhost:8080" )! , config : [.Log (true ), .ForcePolling (true )])
911
1012socket.on (" connect" ) {data, ack in
@@ -26,6 +28,7 @@ socket.connect()
2628
2729##Objective-C Example
2830``` objective-c
31+ @import SocketIO;
2932NSURL * url = [[NSURL alloc ] initWithString: @"http://localhost:8080" ] ;
3033SocketIOClient* socket = [[ SocketIOClient alloc] initWithSocketURL: url config:@{@"log": @YES , @"forcePolling": @YES }] ;
3134
@@ -115,13 +118,13 @@ Import the module:
115118
116119Swift:
117120``` swift
118- import SocketIOClientSwift
121+ import SocketIO
119122```
120123
121124Objective-C:
122125
123126``` Objective-C
124- @import SocketIOClientSwift ;
127+ @import SocketIO ;
125128```
126129
127130CocoaSeeds
You can’t perform that action at this time.
0 commit comments