Skip to content

Commit 2eaca05

Browse files
committed
add platforms
1 parent 18f7d7e commit 2eaca05

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import PackageDescription
55

66
let package = Package(
77
name: "OpenSea",
8-
platforms: [.macOS(.v12)],
8+
platforms: [.macOS(.v12), .iOS(.v13), .tvOS(.v13), .watchOS(.v6)],
99
products: [
1010
// Products define the executables and libraries a package produces, and make them visible to other packages.
1111
.library(

Sources/OpenSeaSwift/Internal/WebSocketService.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,11 @@ final class WebSocketServiceImpl: NSObject, WebSocketService {
1818
private var readTask: Task<Void, Never>?
1919
private lazy var queue = OperationQueue()
2020
private lazy var urlSession: URLSession = .init(configuration: .default,
21-
delegate: nil,
21+
delegate: self,
2222
delegateQueue: queue)
2323

2424
func connect(url: URL, onReceive: @escaping (String) -> Void, onClose: @escaping () -> Void) async throws {
2525
socket = urlSession.webSocketTask(with: url)
26-
socket?.delegate = self
2726
try await withCheckedThrowingContinuation { [weak self] (continuation: CheckedContinuation<Void, Error>) in
2827
self?.handleConnect = continuation.resume(with:)
2928
self?.socket?.resume()

Tests/OpenSeaTests/OpenSeaTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import XCTest
2-
@testable import OpenSea
2+
@testable import OpenSeaSwift
33

44
final class OpenSeaTests: XCTestCase {
55

0 commit comments

Comments
 (0)