Skip to content

Commit 5e1dc53

Browse files
committed
update readme
1 parent e567067 commit 5e1dc53

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ Socket.IO-client for iOS/OS X.
55

66
##Example
77
```swift
8+
import SocketIO
9+
810
let socket = SocketIOClient(socketURL: NSURL(string: "http://localhost:8080")!, config: [.Log(true), .ForcePolling(true)])
911

1012
socket.on("connect") {data, ack in
@@ -26,6 +28,7 @@ socket.connect()
2628

2729
##Objective-C Example
2830
```objective-c
31+
@import SocketIO;
2932
NSURL* url = [[NSURL alloc] initWithString:@"http://localhost:8080"];
3033
SocketIOClient* socket = [[SocketIOClient alloc] initWithSocketURL:url config:@{@"log": @YES, @"forcePolling": @YES}];
3134

@@ -115,13 +118,13 @@ Import the module:
115118

116119
Swift:
117120
```swift
118-
import SocketIOClientSwift
121+
import SocketIO
119122
```
120123

121124
Objective-C:
122125

123126
```Objective-C
124-
@import SocketIOClientSwift;
127+
@import SocketIO;
125128
```
126129

127130
CocoaSeeds

0 commit comments

Comments
 (0)