Update README.md

This commit is contained in:
Erik Little 2014-11-23 17:16:10 -05:00
parent 7229a66a32
commit a22bf44deb

View File

@ -9,14 +9,14 @@ Installation
============ ============
1. Requires linking [SocketRocket](https://github.com/square/SocketRocket) against your xcode project. 1. Requires linking [SocketRocket](https://github.com/square/SocketRocket) against your xcode project.
2. Create a bridging header for SocketRocket 2. Create a bridging header for SocketRocket
2. Copy the SwiftIO folder into your xcode project 3. Copy the SwiftIO folder into your xcode project
3.
Use Use
=== ===
``` ```
let socket = SocketIOClient(socketURL: "http://localhost:8080") let socket = SocketIOClient(socketURL: "http://localhost:8080")
// let socket = SocketIOClient(socketURL: "https://localhost:8080", secure: true)
socket.on("connect") {data in socket.on("connect") {data in
println("socket connected") println("socket connected")
socket.emit("testEcho") socket.emit("testEcho")