Skip to content

Commit

Permalink
Import FoundationNetworking
Browse files Browse the repository at this point in the history
  • Loading branch information
grdsdev committed Jan 12, 2024
1 parent 325d153 commit f9f5b58
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Sources/Realtime/V2/RealtimeClientV2.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ import ConcurrencyExtras
import Foundation
@_spi(Internal) import _Helpers

#if canImport(FoundationNetworking)
import FoundationNetworking
#endif

public actor RealtimeClientV2 {
public struct Configuration: Sendable {
var url: URL
Expand Down
4 changes: 4 additions & 0 deletions Sources/Realtime/V2/WebSocketClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ import ConcurrencyExtras
import Foundation
@_spi(Internal) import _Helpers

#if canImport(FoundationNetworking)
import FoundationNetworking
#endif

protocol WebSocketClientProtocol: Sendable {
var status: AsyncStream<WebSocketClient.ConnectionStatus> { get }

Expand Down

0 comments on commit f9f5b58

Please sign in to comment.