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

Multiple events #8

Open
KPS-gp opened this issue Apr 1, 2021 · 4 comments
Open

Multiple events #8

KPS-gp opened this issue Apr 1, 2021 · 4 comments
Assignees
Labels

Comments

@KPS-gp
Copy link

KPS-gp commented Apr 1, 2021

Hi, I would like to thank you about your project.
I'm researching about webhooks stuff, I would like to set webhooks between 2 programs (an api hosted on azure and a windows client), on internet many examples are based on cloud solution. So I suppose your project is the best to do it. About this, what will be the best words to google it? "Self hosted webhooks", "Custom webhooks"?

So I tried debugging your sample, it's works.
I added a level wich is saving persitence in my sql server, in order to keep in memory subscriptions . I did simulation with connection lost , when client reconnect it's ok, but client receive twice same events and then disconnect / reconnect , one more.
What do i need to change to have unique event even after disconnect / reconnect ?

Thank you.

@Expecho
Copy link
Owner

Expecho commented Apr 6, 2021

I did simulation with connection lost , when client reconnect it's ok, but client receive twice same events and then disconnect / reconnect , one more.

This could happen if the clients registers itself again upon reconnecting. Are you sure you are not accidentally post the registration again.

@KPS-gp
Copy link
Author

KPS-gp commented Apr 6, 2021

I did simulation with connection lost , when client reconnect it's ok, but client receive twice same events and then disconnect / reconnect , one more.

This could happen if the clients registers itself again upon reconnecting. Are you sure you are not accidentally post the registration again.

Yes, it's surely that, but how register client when disconnect or restart. Maybe I don't understood basics? So, If i 'm thinking about registration / unregistration, nothing todo when client restart, because with first registration server make the reconnection?

@Expecho
Copy link
Owner

Expecho commented Apr 6, 2021

So you modified my example to include persistance, is there a fork I can take a look at?

@Expecho Expecho self-assigned this Apr 6, 2021
@KPS-gp
Copy link
Author

KPS-gp commented Apr 7, 2021

Sure, my fork is pushed.

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