Skip to content

Commit

Permalink
Ping success response
Browse files Browse the repository at this point in the history
  • Loading branch information
flypaper0 committed Oct 19, 2022
1 parent 82d5177 commit 2070b1c
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ public class PingResponseSubscriber {
networkingInteractor.responseSubscription(on: method)
.sink { [unowned self] (payload: ResponseSubscriptionPayload<PairingPingParams, Bool>) in
onResponse?(payload.topic)

Task(priority: .high) {
try await networkingInteractor.respondSuccess(
topic: payload.topic,
requestId: payload.id,
protocolMethod: method
)
}
}
.store(in: &publishers)
}
Expand Down

0 comments on commit 2070b1c

Please sign in to comment.