1

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 ?

Amogh Talpallikar
  • 12,084
  • 13
  • 79
  • 135
  • Possible duplicate of [Is long polling possible in Google App Engine?](https://stackoverflow.com/questions/3616145/is-long-polling-possible-in-google-app-engine) – Suma Jul 28 '17 at 11:33

1 Answers1

5

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

Igor Artamonov
  • 35,450
  • 10
  • 82
  • 113
  • Thank alot splix, btw If WebSocket is concerned, Chrome supports it. FireFox supported it initially, but removed it l8r as a security concern. there is a library, If u havent checked already, called Socket.io in JS. that I guess runs on nodejs on backend. it has a graceful degradation feature from,websockets to comet to polling. and in case one is making a chrome webapp, a complete end-to-end V8 solution can be achieved. – Amogh Talpallikar Sep 24 '11 at 11:33
  • oh, you're right, just tested it. I was sure that Chrome didn't supports it. I heard this story about security problems and was sure that both FF and Chrome have disabled support of WS. Thanks – Igor Artamonov Sep 25 '11 at 17:48
  • Actually, it is Comet - Comet is just a generic term for long-polling. – Nick Johnson Sep 26 '11 at 04:16