Skip to content

Commit

Permalink
Push propose error publisher
Browse files Browse the repository at this point in the history
  • Loading branch information
flypaper0 committed Sep 23, 2022
1 parent 1a3af64 commit 87006a7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Sources/WalletConnectPairing/Push/PushClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ private extension PushClient {
func setupPairingSubscriptions() {
pairingRegisterer.register(method: PushProtocolMethod.propose)

networkInteractor.responseErrorSubscription(on: PushProtocolMethod.propose)
.sink { [unowned self] (payload: ResponseSubscriptionErrorPayload<PushRequestParams>) in
print("error")
}.store(in: &publishers)

networkInteractor.requestSubscription(on: PushProtocolMethod.propose)
.sink { [unowned self] (payload: RequestSubscriptionPayload<PushRequestParams>) in
requestPublisherSubject.send((payload.topic, payload.request))
Expand Down

0 comments on commit 87006a7

Please sign in to comment.