interledgerjs / ilp-plugin-btp

This has been moved to the monorepo https://github.com/interledgerjs/interledgerjs
8 stars 7 forks source link

fix: don't create unnecessary event listeners #47

Closed sentientwaffle closed 5 years ago

sentientwaffle commented 6 years ago

When repeatedly reconnecting, make sure the btp client only creates a single WebSocketReconnector open event handler, instead of one per retry.

This prevents the MaxListenersExceededWarning warning.