Skip to content

Commit 8f22bde

Browse files
committed
update readme
1 parent a2ea2df commit 8f22bde

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Socket.IO-client for iOS/OS X.
77
```swift
88
import 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

1212
socket.on(clientEvent: .connect) {data, ack in
1313
print("socket connected")
@@ -30,7 +30,7 @@ socket.connect()
3030
```objective-c
3131
@import SocketIO;
3232
NSURL* 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
9393
Add 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

9898
Run `carthage update --platform ios,macosx`.
@@ -104,7 +104,7 @@ Create `Podfile` and add `pod 'Socket.IO-Client-Swift'`:
104104
use_frameworks!
105105

106106
target '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
108108
end
109109
```
110110

@@ -132,7 +132,7 @@ Objective-C:
132132
Add 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

138138
Run `seed install`.

0 commit comments

Comments
 (0)