Maximum number of concurrent connections on a single port (socket) of Server

This depends in part on your operating system. There is however no limit on a specific port. There is a limit on the number of concurrent connections however, typically limited by the number of file descriptors the kernel supports (eg 2048). The thing to remember is that a TCP connection is unique and a connection … Read more

How to keep the android client connected to the server even on activity changes and send data to server?

The code is right. The only mistake was that I was trying to start the service twice once in onServiceConnected() method and the other in onCreate() method. I changed my code to start the service only in onCreate() method in the launcher activity. The rest of the activities directly bind to the service by using … Read more

Avoid caching of the http responses

Server-side cache control headers should look like: Expires: Tue, 03 Jul 2001 06:00:00 GMT Last-Modified: {now} GMT Cache-Control: max-age=0, no-cache, must-revalidate, proxy-revalidate Avoid rewriting URLs on the client because it pollutes caches, and causes other weird semantic issues. Furthermore: Use one Cache-Control header (see rfc 2616) because behaviour with multiple entries is undefined. Also the … Read more

ReactJS server-side rendering vs client-side rendering

For a given website / web-application, you can use react either client-side, server-side or both. Client-Side Over here, you are completely running ReactJS on the browser. This is the simplest setup and includes most examples (including the ones on http://reactjs.org). The initial HTML rendered by the server is a placeholder and the entire UI is … Read more

Chart data exported to an Apps Script webapp is null

You probably are sending incompatible datatypes: per the client-server communication documentation, requests with Dates will fail. My preferred method for google.script.run communication is to 1) send all Dates as milliseconds, via Date().getTime(), as this will also avoid timezone issues and browser-dependent datestring parsing differences. In the client then, you can remap your input data back … Read more