4

Reviewer's Note

The title is exactly as it is supposed to be, even if the accepted answer suggests WebSockets.

We are building an application where customer will send data to our application. Our application have different events, like validating the data, saving it to data base and etc. I want to notify the client about the status of their data, like the data is validated, data is saved in SQL, etc. Our backend service will be in C#. I am new to this WebHook concept and have never implemented this before. I am looking for code examples for both sending and receiving side of WebHooks.

I would really appreciate any help.

aaron
  • 39,695
  • 6
  • 46
  • 102
Hussain ali
  • 491
  • 3
  • 7
  • 21
  • 2
    Professor Google will be the best way for you to learn and get code samples. StackOverflow is better when you already have code and get stuck on something specific. Fortunately, a simple Google search will get you started nicely. – Shannon Holsinger Sep 26 '16 at 06:28

1 Answers1

4

I think you are looking for WebSockets, and to 'push' notification to the client, the proven and most popular .NET solution is SignalR, last time I checked :)

There are alternatives too, GitHub search: websockets c#

Most WebSocket libs will fallback to legacy ways, like polling, when WebSockets are not supported.

aaron
  • 39,695
  • 6
  • 46
  • 102
Dan
  • 2,818
  • 23
  • 21