Implement Comet / Server push in Google App Engine in Python

后端 未结 6 1655
盖世英雄少女心
盖世英雄少女心 2021-02-02 09:46

How can I implement Comet / Server push in Google App Engine in Python?

6条回答
  •  悲&欢浪女
    2021-02-02 10:43

    30 seconds is more than enough; either way you should return a no-op message when a time passed and no new events occur.

    This prevents client timeouts and is done by everybody who does comet.

    Just send the request, and on the server make it wait until an event or timeout after 25 seconds.

提交回复
热议问题