Go to file
Erik 25082ebb61 work on sending binary data 2014-11-26 11:32:36 -05:00
SwiftIO work on sending binary data 2014-11-26 11:32:36 -05:00
README.md Update README.md 2014-11-23 17:16:10 -05:00

README.md

Socket.IO-Client-Swift

Work in progress

socket.io-client for Swift

Installation

  1. Requires linking SocketRocket against your xcode project.
  2. Create a bridging header for SocketRocket
  3. Copy the SwiftIO folder into your xcode project

Use

let socket = SocketIOClient(socketURL: "http://localhost:8080")
// let socket = SocketIOClient(socketURL: "https://localhost:8080", secure: true)
socket.on("connect") {data in
    println("socket connected")
    socket.emit("testEcho")
    socket.emit("testObject", args: [
        "data": true
        ])
}
socket.connect()