add default urls

This commit is contained in:
Erik 2016-01-25 18:48:21 -05:00
parent efe0d01592
commit 3f57c7e0a9
2 changed files with 4 additions and 4 deletions

View File

@ -15,8 +15,8 @@ class SocketEngineTest: XCTestCase {
override func setUp() {
super.setUp()
client = SocketIOClient(socketURL: NSURL())
engine = SocketEngine(client: client, url: NSURL(), options: nil)
client = SocketIOClient(socketURL: NSURL(string: "http://localhost")!)
engine = SocketEngine(client: client, url: NSURL(string: "http://localhost")!, options: nil)
client.setTestable()
}

View File

@ -47,8 +47,8 @@ public final class SocketEngine: NSObject, SocketEnginePollable, SocketEngineWeb
public private(set) var session: NSURLSession?
public private(set) var sid = ""
public private(set) var socketPath = "/engine.io/"
public private(set) var urlPolling = NSURL()
public private(set) var urlWebSocket = NSURL()
public private(set) var urlPolling = NSURL(string: "http://localhost?default=")!
public private(set) var urlWebSocket = NSURL(string: "http://localhost?default=")!
public private(set) var websocket = false
public private(set) var ws: WebSocket?