tictactoe
tictactoe copied to clipboard
Some question~
Hi, mmerickel~Thx ur job to explain how to do long polling with gevent.
e..Do u mind tell me more about it?
- As I think, ur code's difference with gevent's example 'webchat' is u used queue to block a request, not directly use event. When u say 'the resources your web framework has allocated for each request will remain in memory', what resources really is in the code? The 'updates' or the 'observer'? I am new to things in web programming(js, python, gevent~), and new to english... :( didnt quite understand what 'resources' mean..
- when client try get update, should they request things like these by order? I didnt know about obj-c, so I changed the method to 'GET' use browser with some tab to test it... '../api/updates/game_id=xxxx?cursor=0' '../api/updates/game_id=xxxx?cursor=1' '../api/updates/game_id=xxxx?cursor=xxx'
- Maybe should add a line in 'app.py': config.add_route('api.chat', '/api/chat')