如何在 Google 应用引擎上实现 COMET/ 服务器推送?
我对 Stack Overflow 和 Google 应用引擎都很陌生。 在Java Web应用程序中,我如何实现COMET,在连接超时方面是否有限制,或者如果不可能,可以在appengine上实现websocket服务器吗?
I am new to both Stack overflow and Google app engine.
in a Java Web application, how ddo I achieve COMET, are there limitations in terms of connection timeout or if that is not possible, can a websocket server be implemented on appengine ?
如果您需要服务器到客户端推送,则必须使用 Channel API 对于 GAE。
从技术上讲,它不是 COMET 或 WebSockets,但它们是相同的。而且,我想,我将充当网络套接字,有时在将来(也许它已经在工作了,但我现在不知道在哪里可以获得支持此功能的浏览器。有人可以纠正我吗?) 。顺便说一句,对你来说它仍然是相同的 Channel API
If you need server-to-client push, you have to use Channel API for GAE.
It not a COMET or WebSockets, technically, but it's same. And, I guess, I'll be functioning as a web sockets, sometimes in future (maybe it's already working, but i don't know where to get a browser that supports this feature, right now. Can anyone correct me there?). Btw, for you it'll be still same Channel API