You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected behavior in that case is that NodeJS program should exit once Event loop is empty.
Actual behavior is that js-waku seems to retain some event listeners and/or timers thus preventing NodeJS from exit.
Mitigation I can think of right now is to use process.exit(0); at the end of your script to exit from the process otherwise you can safely assume js-waku is kinda stopped and won't consume a lot of resources even though there are some pending timers / events left.
Things that we need to investigate and potentially re-work:
centralize scheduling or events and timers within js-waku codebase;
Ice boxing for now as js-waku optimizes for Browser and NodeJS is descoped for next period for now.
For NodeJS you can try using nwaku bindings or REST API.
Run
Output:
The text was updated successfully, but these errors were encountered: