Skip to content
This repository has been archived by the owner on Jun 22, 2021. It is now read-only.

Commit

Permalink
SwiftWebSocket doesn't have a Mac version
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardopereira committed Jun 20, 2015
1 parent 826cda0 commit 4473be5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Source/SocketIOWebSocket.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,20 @@
//

import Foundation

// TODO: SwiftWebSocket doesn't have a Mac version!
#if os(iOS)
import SwiftWebSocket
#endif

private enum WSScheme: String {
case WS = "ws"
case WSS = "wss"
}

class SocketIOWebSocket: SocketIOTransport {


#if os(iOS)
private var ws: WebSocket!
private let defaultPort = 80
private var pingTimer: NSTimer?
Expand Down Expand Up @@ -296,5 +301,6 @@ class SocketIOWebSocket: SocketIOTransport {
println("Ping")
#endif
}
#endif

}

0 comments on commit 4473be5

Please sign in to comment.