From 5e1dc533042fc55630bbfca569971bb3ca7ee4bc Mon Sep 17 00:00:00 2001 From: Erik Date: Sun, 14 Aug 2016 23:05:02 -0400 Subject: [PATCH] update readme --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f08ab7a..010ad0a 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,8 @@ Socket.IO-client for iOS/OS X. ##Example ```swift +import SocketIO + let socket = SocketIOClient(socketURL: NSURL(string: "http://localhost:8080")!, config: [.Log(true), .ForcePolling(true)]) socket.on("connect") {data, ack in @@ -26,6 +28,7 @@ socket.connect() ##Objective-C Example ```objective-c +@import SocketIO; NSURL* url = [[NSURL alloc] initWithString:@"http://localhost:8080"]; SocketIOClient* socket = [[SocketIOClient alloc] initWithSocketURL:url config:@{@"log": @YES, @"forcePolling": @YES}]; @@ -115,13 +118,13 @@ Import the module: Swift: ```swift -import SocketIOClientSwift +import SocketIO ``` Objective-C: ```Objective-C -@import SocketIOClientSwift; +@import SocketIO; ``` CocoaSeeds