Skip to content

fix: queue delivery_module subscriptions until connected#78

Merged
jimmy-claw merged 1 commit intomainfrom
jimmy/fix-delivery-init
Mar 13, 2026
Merged

fix: queue delivery_module subscriptions until connected#78
jimmy-claw merged 1 commit intomainfrom
jimmy/fix-delivery-init

Conversation

@jimmy-claw
Copy link
Copy Markdown
Owner

delivery_module's createNode+start are async — Waku takes a few seconds to connect. Calling subscribe() immediately after start() fails with 'context not initialized'.

Fix: register connectionStateChanged event handler, queue subscriptions, and only subscribe when status is 'Connected'. startSync() adds to pending queue if node is still starting.

@jimmy-claw jimmy-claw merged commit be79c8d into main Mar 13, 2026
2 checks passed
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.

1 participant