Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How can I have the server asynchronously notify an XWT application?

0
Posted

How can I have the server asynchronously notify an XWT application?

0

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,

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123