First of all lets discuss my case below: I have three part comes and play in my case: 1- Client HTML page 2- ASP.NET API that hosted on windows 2008 Web server 3- Black-Box TCP Socket Server (Hosted on internal zone and does not accessible from out side world) which will receive requests and send back with the response.
The HTML page sends an AJAX call to ASP.NET API service , After that the API service will open a connection to internal TCP Socket server (Black Box).
I would like to make the socket connection opened once a day . Since I have a lot of AJAX calls goes and forth to TCP server. I don't need to open a Socket connection for each request.
I already try to use asynchronous socket example using link below : https://msdn.microsoft.com/en-us/library/bew39x2a(v=vs.110).aspx
Any body try this case before , I need the best and easy way to do that ? Any suggestions I will be appreciated ..