Self-Hosted-Asp.Net-WebHooks icon indicating copy to clipboard operation
Self-Hosted-Asp.Net-WebHooks copied to clipboard

Multiple events

Open KPS-gp opened this issue 4 years ago • 4 comments

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.

KPS-gp avatar Apr 01 '21 07:04 KPS-gp

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.

Expecho avatar Apr 06 '21 09:04 Expecho

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?

KPS-gp avatar Apr 06 '21 11:04 KPS-gp

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

Expecho avatar Apr 06 '21 15:04 Expecho

Sure, my fork is pushed.

KPS-gp avatar Apr 07 '21 07:04 KPS-gp