Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🚀 Feature: Better control over @novu/js HeadlessService connection #7291

Open
2 tasks done
JonasDoe opened this issue Dec 12, 2024 · 2 comments
Open
2 tasks done
Labels

Comments

@JonasDoe
Copy link

JonasDoe commented Dec 12, 2024

🔖 Feature description

It would be great if one could disconnect the HeadlessService.

🎤 Why is this feature needed ?

When the network connection is gone (e.g. b/c the app is running on a mobile with connectivity issues), the HeadlessService constantly attempts to reconnect. This is pointlessly straining the mobile's battery.

✌️ How do you aim to achieve this?

When I lose the connection, I want to tell the HeadlessServer to disconnect or yield its reconnection attempt until the connection is back.

🔄️ Additional Information

Alternatively, some more settings for the connection behavior (which comes down to socket.io, if I understand correctly) or a direct access to the underlying connection would help.

👀 Have you spent some time to check if this feature request has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

Are you willing to submit PR?

If it's just about exposing the underlying connection, I can do that. For more a more elaborate approach, I think I'ld need some decision on how this should be solved (e.g. by settings or a disconnection method?) before tending to it.

Copy link

linear bot commented Dec 12, 2024

@FurquanAnwer
Copy link

Can I work on this ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants