How can I have the server asynchronously notify an XWT application?
Currently, there are three solutions to this problem: • The simplest approach is to simply have the XWT application poll the server at a given interval (a few seconds, perhaps). This is wasteful and inefficient, but sometimes it’s “good enough”. • A more elegant approach is to have the XWT client app make an XML-RPC call to the server, and set the server to simply not return until it wants to send data to the client. XWT’s HTTP stack does not have a timeout value, nor do most XML-RPC server implementations. • Use HTTP KeepAlive to implement approach #2 with multiple in-flight requests over a single HTTP connection. This will lower the latency to RTT/2, which is as good as it would get with “real” asynchronous notifications. For the future, two different approaches are being considered. • Implement support for XATP in XWT. Very clean, elegant protocol, but it doesn’t work through proxies. I’ve considered mangling the protocol a bit by using a pair of HTTP connections (one for outbound,