Skip to content

Commit 7b9c53e

Browse files
committed
Use the default queue for the URLSession created within URLSessionTransport
1 parent 6f818d5 commit 7b9c53e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/SwiftPhoenixClient/PhoenixTransport.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,10 @@ open class URLSessionTransport: NSObject, PhoenixTransport, URLSessionWebSocketD
137137
/// The URL to connect to
138138
internal let url: URL
139139

140-
/// The URLSession configuratio
140+
/// The URLSession configuration
141141
internal let configuration: URLSessionConfiguration
142142

143-
/// The underling URLsession. Assigned during `connect()`
143+
/// The underling URLSession. Assigned during `connect()`
144144
private var session: URLSession? = nil
145145

146146
/// The ongoing task. Assigned during `connect()`
@@ -195,7 +195,7 @@ open class URLSessionTransport: NSObject, PhoenixTransport, URLSessionWebSocketD
195195
self.readyState = .connecting
196196

197197
// Create the session and websocket task
198-
self.session = URLSession(configuration: self.configuration, delegate: self, delegateQueue: OperationQueue())
198+
self.session = URLSession(configuration: self.configuration, delegate: self, delegateQueue: nil)
199199
self.task = self.session?.webSocketTask(with: url)
200200

201201
// Start the task

0 commit comments

Comments
 (0)