How then problem of sending signals (on some events) from web-site to desktop application (written on C#) can be solved? Which approaches you can recommend? Is WebSocket protocol is good for these goals?
Asked
Active
Viewed 115 times
1
-
Do you mean something like this? http://stackoverflow.com/questions/3152482/running-exe-from-javascript – Bassie Dec 02 '16 at 10:01
-
2I'd recommend doing some research into it and trying something yourself, first. We can help when you have some code with issues. – Reinstate Monica Cellio Dec 02 '16 at 10:05
-
1try https://www.asp.net/signalr – Peter Bons Dec 02 '16 at 10:06
1 Answers
0
You can use Websockets from Javascript in HTML or poll the website for data using a HttpRequest object in C#.
I would recommend polling for data via HttpRequest since the data will be a little more reliable when not generated completely on the client machine.
Also you may use encryption methods for security.

Bastian von Halem
- 86
- 1
- 3
-
If you're considering using Websockets, then look at http://asp.net/signalr which wraps this for you in the latest tech with fallbacks. – freedomn-m Dec 02 '16 at 11:40
-