Skip to content

Commit c05ae67

Browse files
authored
Merge pull request #364 from Syn-McJ/fix/websocket-provider
fix: make WebSocketNetworkProvider public
2 parents 6511c9a + 3e9b222 commit c05ae67

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

web3swift/src/Client/NetworkProviders/WebSocketNetworkProvider.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import FoundationNetworking
2020
#endif
2121

22-
class WebSocketNetworkProvider: WebSocketNetworkProviderProtocol {
22+
public class WebSocketNetworkProvider: WebSocketNetworkProviderProtocol {
2323
private struct WebSocketRequest {
2424
var payload: String
2525
var callback: (Result<Data, JSONRPCError>) -> Void
@@ -107,7 +107,7 @@
107107

108108
weak var delegate: EthereumWebSocketClientDelegate?
109109

110-
var session: URLSession
110+
public var session: URLSession
111111
var onReconnectCallback: (() -> Void)?
112112
let url: String
113113
let eventLoopGroup: EventLoopGroup
@@ -171,7 +171,7 @@
171171
}
172172
}
173173

174-
func send<P, U>(method: String, params: P, receive: U.Type) async throws -> Any where P: Encodable, U: Decodable {
174+
public func send<P, U>(method: String, params: P, receive: U.Type) async throws -> Any where P: Encodable, U: Decodable {
175175
try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<Any, Error>) in
176176
resources.incrementCounter()
177177
let id = resources.counter

0 commit comments

Comments
 (0)