Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import FoundationNetworking
#endif

class WebSocketNetworkProvider: WebSocketNetworkProviderProtocol {
public class WebSocketNetworkProvider: WebSocketNetworkProviderProtocol {
private struct WebSocketRequest {
var payload: String
var callback: (Result<Data, JSONRPCError>) -> Void
Expand Down Expand Up @@ -107,7 +107,7 @@

weak var delegate: EthereumWebSocketClientDelegate?

var session: URLSession
public var session: URLSession
var onReconnectCallback: (() -> Void)?
let url: String
let eventLoopGroup: EventLoopGroup
Expand Down Expand Up @@ -171,7 +171,7 @@
}
}

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