Skip to content

Commit

Permalink
Merge pull request #232 from ejensen/urlsession-transport-queue
Browse files Browse the repository at this point in the history
Correct `URLSession` delegate queue
  • Loading branch information
dsrees authored Apr 12, 2023
2 parents 6f818d5 + 7b9c53e commit 0a1fddd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/SwiftPhoenixClient/PhoenixTransport.swift
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,10 @@ open class URLSessionTransport: NSObject, PhoenixTransport, URLSessionWebSocketD
/// The URL to connect to
internal let url: URL

/// The URLSession configuratio
/// The URLSession configuration
internal let configuration: URLSessionConfiguration

/// The underling URLsession. Assigned during `connect()`
/// The underling URLSession. Assigned during `connect()`
private var session: URLSession? = nil

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

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

// Start the task
Expand Down

0 comments on commit 0a1fddd

Please sign in to comment.