Skip to content

fix: handle EVENT_MSG in handle_msg and register subscriptions via subscribe_with_id_to#72

Open
dadofsambonzuki wants to merge 2 commits into
lnbits:mainfrom
dadofsambonzuki:fix-event-msg-handling
Open

fix: handle EVENT_MSG in handle_msg and register subscriptions via subscribe_with_id_to#72
dadofsambonzuki wants to merge 2 commits into
lnbits:mainfrom
dadofsambonzuki:fix-event-msg-handling

Conversation

@dadofsambonzuki

Copy link
Copy Markdown

Fixes EVENT messages being silently dropped in handle_msg because the SDK uses is_EVENT_MSG() not is_EVENT(). Also registers subscriptions via subscribe_with_id_to so events route through both handle_msg and handle callbacks.

Changes

  • handle_msg: handle EVENT messages via is_EVENT_MSG(), handle OK messages, add return after CLOSED
  • handle: wrapped in try/except with error logging
  • _broadcast_subscription: add subscribe_with_id_to alongside raw REQ
  • _replay_cached_subscriptions: add subscribe_with_id_to alongside raw REQ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants