I want to send a JavaScript AJAX call to a C# server every few seconds, I have all the client side ready, how would I read it server side and send a reply? I know AJAX stands for Asynchronous JavaScript and XML so there might be no way at all I searched google and found nothing.
Also what is the maximum size of a message you can pass between every ajax call?
You can create your own webserver in C# using TCPListener class. With that you can get all the data sent to console application (including header data) and respond to it.
There’s more information with a complete sample in at the following website:
Create your own Web Server using C#