add default urls
This commit is contained in:
parent
efe0d01592
commit
3f57c7e0a9
@ -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()
|
||||
}
|
||||
|
||||
@ -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?
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user