@@ -7,7 +7,7 @@ Socket.IO-client for iOS/OS X.
77``` swift
88import SocketIO
99
10- let socket = SocketIOClient (socketURL : URL (string : " http://localhost:8080" )! , config : [.log (true ), .forcePolling ( true ) ])
10+ let socket = SocketIOClient (socketURL : URL (string : " http://localhost:8080" )! , config : [.log (true ), .compress ])
1111
1212socket.on (clientEvent : .connect ) {data, ack in
1313 print (" socket connected" )
@@ -30,7 +30,7 @@ socket.connect()
3030``` objective-c
3131@import SocketIO;
3232NSURL * url = [[NSURL alloc ] initWithString: @"http://localhost:8080" ] ;
33- SocketIOClient* socket = [[ SocketIOClient alloc] initWithSocketURL: url config:@{@"log": @YES , @"forcePolling ": @YES }] ;
33+ SocketIOClient* socket = [[ SocketIOClient alloc] initWithSocketURL: url config:@{@"log": @YES , @"compress ": @YES }] ;
3434
3535[ socket on:@"connect" callback:^(NSArray* data, SocketAckEmitter* ack) {
3636 NSLog(@"socket connected");
@@ -92,7 +92,7 @@ Then import `import SocketIO`.
9292### Carthage
9393Add this line to your ` Cartfile ` :
9494```
95- github "socketio/socket.io-client-swift" ~> 10.0.1 # Or latest version
95+ github "socketio/socket.io-client-swift" ~> 10.1.0 # Or latest version
9696```
9797
9898Run ` carthage update --platform ios,macosx ` .
@@ -104,7 +104,7 @@ Create `Podfile` and add `pod 'Socket.IO-Client-Swift'`:
104104use_frameworks!
105105
106106target ' YourApp' do
107- pod ' Socket.IO-Client-Swift' , ' ~> 10.0.1 ' # Or latest version
107+ pod ' Socket.IO-Client-Swift' , ' ~> 10.1.0 ' # Or latest version
108108end
109109```
110110
@@ -132,7 +132,7 @@ Objective-C:
132132Add this line to your ` Seedfile ` :
133133
134134```
135- github "socketio/socket.io-client-swift", "v10.0.1 ", :files => "Source/*.swift" # Or latest version
135+ github "socketio/socket.io-client-swift", "v10.1.0 ", :files => "Source/*.swift" # Or latest version
136136```
137137
138138Run ` seed install ` .
0 commit comments